google-api-client 0.30.1 → 0.30.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +64 -0
  3. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  4. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +8 -74
  5. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  6. data/generated/google/apis/androidenterprise_v1/classes.rb +156 -0
  7. data/generated/google/apis/androidenterprise_v1/representations.rb +68 -0
  8. data/generated/google/apis/androidenterprise_v1/service.rb +39 -0
  9. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  10. data/generated/google/apis/androidpublisher_v3/classes.rb +8 -0
  11. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  12. data/generated/google/apis/appengine_v1.rb +1 -1
  13. data/generated/google/apis/appengine_v1/classes.rb +8 -64
  14. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  15. data/generated/google/apis/appengine_v1alpha/classes.rb +8 -64
  16. data/generated/google/apis/appengine_v1beta.rb +1 -1
  17. data/generated/google/apis/appengine_v1beta/classes.rb +8 -64
  18. data/generated/google/apis/bigquery_v2.rb +1 -1
  19. data/generated/google/apis/bigquery_v2/classes.rb +12 -4
  20. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  21. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  22. data/generated/google/apis/cloudbuild_v1/classes.rb +8 -74
  23. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  24. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +8 -74
  25. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  26. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +10 -74
  27. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  28. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +8 -74
  29. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  30. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +8 -74
  31. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  32. data/generated/google/apis/cloudtasks_v2/classes.rb +8 -74
  33. data/generated/google/apis/cloudtasks_v2/service.rb +1 -2
  34. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  35. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +8 -74
  36. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  37. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +8 -82
  38. data/generated/google/apis/cloudtasks_v2beta3/service.rb +1 -2
  39. data/generated/google/apis/container_v1.rb +1 -1
  40. data/generated/google/apis/container_v1/classes.rb +6 -0
  41. data/generated/google/apis/container_v1beta1.rb +1 -1
  42. data/generated/google/apis/container_v1beta1/classes.rb +6 -0
  43. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  44. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +12 -111
  45. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  46. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +8 -74
  47. data/generated/google/apis/content_v2.rb +1 -1
  48. data/generated/google/apis/content_v2/classes.rb +6 -0
  49. data/generated/google/apis/content_v2/representations.rb +2 -0
  50. data/generated/google/apis/content_v2_1.rb +1 -1
  51. data/generated/google/apis/content_v2_1/classes.rb +6 -0
  52. data/generated/google/apis/content_v2_1/representations.rb +2 -0
  53. data/generated/google/apis/dialogflow_v2.rb +1 -1
  54. data/generated/google/apis/dialogflow_v2/classes.rb +12 -111
  55. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  56. data/generated/google/apis/dialogflow_v2beta1/classes.rb +27 -117
  57. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -0
  58. data/generated/google/apis/dlp_v2.rb +1 -1
  59. data/generated/google/apis/dlp_v2/classes.rb +8 -74
  60. data/generated/google/apis/docs_v1.rb +1 -1
  61. data/generated/google/apis/docs_v1/classes.rb +10 -0
  62. data/generated/google/apis/fcm_v1.rb +1 -1
  63. data/generated/google/apis/fcm_v1/classes.rb +56 -0
  64. data/generated/google/apis/fcm_v1/representations.rb +31 -0
  65. data/generated/google/apis/file_v1.rb +1 -1
  66. data/generated/google/apis/file_v1/classes.rb +6 -6
  67. data/generated/google/apis/file_v1/representations.rb +1 -1
  68. data/generated/google/apis/file_v1beta1.rb +1 -1
  69. data/generated/google/apis/file_v1beta1/classes.rb +6 -6
  70. data/generated/google/apis/file_v1beta1/representations.rb +1 -1
  71. data/generated/google/apis/genomics_v1.rb +1 -1
  72. data/generated/google/apis/genomics_v1/classes.rb +8 -74
  73. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  74. data/generated/google/apis/genomics_v1alpha2/classes.rb +8 -74
  75. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  76. data/generated/google/apis/genomics_v2alpha1/classes.rb +14 -113
  77. data/generated/google/apis/gmail_v1.rb +1 -1
  78. data/generated/google/apis/gmail_v1/classes.rb +10 -2
  79. data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
  80. data/generated/google/apis/healthcare_v1alpha2/classes.rb +62 -113
  81. data/generated/google/apis/healthcare_v1alpha2/representations.rb +17 -0
  82. data/generated/google/apis/healthcare_v1alpha2/service.rb +2 -0
  83. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  84. data/generated/google/apis/healthcare_v1beta1/classes.rb +14 -113
  85. data/generated/google/apis/healthcare_v1beta1/service.rb +2 -0
  86. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  87. data/generated/google/apis/jobs_v3p1beta1/classes.rb +4 -3
  88. data/generated/google/apis/language_v1.rb +1 -1
  89. data/generated/google/apis/language_v1/classes.rb +4 -37
  90. data/generated/google/apis/language_v1beta1.rb +1 -1
  91. data/generated/google/apis/language_v1beta1/classes.rb +4 -37
  92. data/generated/google/apis/language_v1beta2.rb +1 -1
  93. data/generated/google/apis/language_v1beta2/classes.rb +4 -37
  94. data/generated/google/apis/logging_v2.rb +5 -2
  95. data/generated/google/apis/logging_v2/service.rb +4 -1
  96. data/generated/google/apis/ml_v1.rb +1 -1
  97. data/generated/google/apis/ml_v1/classes.rb +27 -77
  98. data/generated/google/apis/ml_v1/representations.rb +2 -0
  99. data/generated/google/apis/monitoring_v3.rb +5 -2
  100. data/generated/google/apis/monitoring_v3/classes.rb +13 -97
  101. data/generated/google/apis/monitoring_v3/service.rb +4 -1
  102. data/generated/google/apis/redis_v1.rb +1 -1
  103. data/generated/google/apis/redis_v1/classes.rb +12 -78
  104. data/generated/google/apis/redis_v1/service.rb +2 -2
  105. data/generated/google/apis/redis_v1beta1.rb +1 -1
  106. data/generated/google/apis/redis_v1beta1/classes.rb +12 -78
  107. data/generated/google/apis/redis_v1beta1/service.rb +2 -2
  108. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  109. data/generated/google/apis/remotebuildexecution_v1/classes.rb +20 -185
  110. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  111. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +20 -185
  112. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  113. data/generated/google/apis/remotebuildexecution_v2/classes.rb +28 -259
  114. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  115. data/generated/google/apis/runtimeconfig_v1/classes.rb +8 -74
  116. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  117. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +12 -111
  118. data/generated/google/apis/securitycenter_v1p1alpha1.rb +35 -0
  119. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +223 -0
  120. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +114 -0
  121. data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +211 -0
  122. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  123. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -0
  124. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  125. data/generated/google/apis/servicenetworking_v1/classes.rb +1 -0
  126. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  127. data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -0
  128. data/generated/google/apis/serviceusage_v1.rb +1 -1
  129. data/generated/google/apis/serviceusage_v1/classes.rb +1 -0
  130. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  131. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -0
  132. data/generated/google/apis/storage_v1.rb +1 -1
  133. data/generated/google/apis/storage_v1/classes.rb +0 -7
  134. data/generated/google/apis/storage_v1/representations.rb +0 -1
  135. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  136. data/generated/google/apis/storagetransfer_v1/classes.rb +14 -78
  137. data/generated/google/apis/vision_v1.rb +1 -1
  138. data/generated/google/apis/vision_v1/classes.rb +36 -333
  139. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  140. data/generated/google/apis/vision_v1p1beta1/classes.rb +32 -296
  141. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  142. data/generated/google/apis/vision_v1p2beta1/classes.rb +32 -296
  143. data/generated/google/apis/youtube_analytics_v2.rb +1 -1
  144. data/generated/google/apis/youtube_partner_v1.rb +2 -2
  145. data/generated/google/apis/youtube_partner_v1/service.rb +1 -1
  146. data/lib/google/apis/version.rb +1 -1
  147. metadata +6 -2
@@ -309,43 +309,10 @@ module Google
309
309
 
310
310
  # The `Status` type defines a logical error model that is suitable for
311
311
  # different programming environments, including REST APIs and RPC APIs. It is
312
- # used by [gRPC](https://github.com/grpc). The error model is designed to be:
313
- # - Simple to use and understand for most users
314
- # - Flexible enough to meet unexpected needs
315
- # # Overview
316
- # The `Status` message contains three pieces of data: error code, error
317
- # message, and error details. The error code should be an enum value of
318
- # google.rpc.Code, but it may accept additional error codes if needed. The
319
- # error message should be a developer-facing English message that helps
320
- # developers *understand* and *resolve* the error. If a localized user-facing
321
- # error message is needed, put the localized message in the error details or
322
- # localize it in the client. The optional error details may contain arbitrary
323
- # information about the error. There is a predefined set of error detail types
324
- # in the package `google.rpc` that can be used for common error conditions.
325
- # # Language mapping
326
- # The `Status` message is the logical representation of the error model, but it
327
- # is not necessarily the actual wire format. When the `Status` message is
328
- # exposed in different client libraries and different wire protocols, it can be
329
- # mapped differently. For example, it will likely be mapped to some exceptions
330
- # in Java, but more likely mapped to some error codes in C.
331
- # # Other uses
332
- # The error model and the `Status` message can be used in a variety of
333
- # environments, either with or without APIs, to provide a
334
- # consistent developer experience across different environments.
335
- # Example uses of this error model include:
336
- # - Partial errors. If a service needs to return partial errors to the client,
337
- # it may embed the `Status` in the normal response to indicate the partial
338
- # errors.
339
- # - Workflow errors. A typical workflow has multiple steps. Each step may
340
- # have a `Status` message for error reporting.
341
- # - Batch operations. If a client uses batch request and batch response, the
342
- # `Status` message should be used directly inside batch response, one for
343
- # each error sub-response.
344
- # - Asynchronous operations. If an API call embeds asynchronous operation
345
- # results in its response, the status of those operations should be
346
- # represented directly using the `Status` message.
347
- # - Logging. If some API errors are stored in logs, the message `Status` could
348
- # be used directly after any stripping needed for security/privacy reasons.
312
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
313
+ # three pieces of data: error code, error message, and error details.
314
+ # You can find out more about this error model and how to work with it in the
315
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
349
316
  # Corresponds to the JSON property `error`
350
317
  # @return [Google::Apis::RuntimeconfigV1beta1::Status]
351
318
  attr_accessor :error
@@ -560,43 +527,10 @@ module Google
560
527
 
561
528
  # The `Status` type defines a logical error model that is suitable for
562
529
  # different programming environments, including REST APIs and RPC APIs. It is
563
- # used by [gRPC](https://github.com/grpc). The error model is designed to be:
564
- # - Simple to use and understand for most users
565
- # - Flexible enough to meet unexpected needs
566
- # # Overview
567
- # The `Status` message contains three pieces of data: error code, error
568
- # message, and error details. The error code should be an enum value of
569
- # google.rpc.Code, but it may accept additional error codes if needed. The
570
- # error message should be a developer-facing English message that helps
571
- # developers *understand* and *resolve* the error. If a localized user-facing
572
- # error message is needed, put the localized message in the error details or
573
- # localize it in the client. The optional error details may contain arbitrary
574
- # information about the error. There is a predefined set of error detail types
575
- # in the package `google.rpc` that can be used for common error conditions.
576
- # # Language mapping
577
- # The `Status` message is the logical representation of the error model, but it
578
- # is not necessarily the actual wire format. When the `Status` message is
579
- # exposed in different client libraries and different wire protocols, it can be
580
- # mapped differently. For example, it will likely be mapped to some exceptions
581
- # in Java, but more likely mapped to some error codes in C.
582
- # # Other uses
583
- # The error model and the `Status` message can be used in a variety of
584
- # environments, either with or without APIs, to provide a
585
- # consistent developer experience across different environments.
586
- # Example uses of this error model include:
587
- # - Partial errors. If a service needs to return partial errors to the client,
588
- # it may embed the `Status` in the normal response to indicate the partial
589
- # errors.
590
- # - Workflow errors. A typical workflow has multiple steps. Each step may
591
- # have a `Status` message for error reporting.
592
- # - Batch operations. If a client uses batch request and batch response, the
593
- # `Status` message should be used directly inside batch response, one for
594
- # each error sub-response.
595
- # - Asynchronous operations. If an API call embeds asynchronous operation
596
- # results in its response, the status of those operations should be
597
- # represented directly using the `Status` message.
598
- # - Logging. If some API errors are stored in logs, the message `Status` could
599
- # be used directly after any stripping needed for security/privacy reasons.
530
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
531
+ # three pieces of data: error code, error message, and error details.
532
+ # You can find out more about this error model and how to work with it in the
533
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
600
534
  class Status
601
535
  include Google::Apis::Core::Hashable
602
536
 
@@ -775,43 +709,10 @@ module Google
775
709
 
776
710
  # The `Status` type defines a logical error model that is suitable for
777
711
  # different programming environments, including REST APIs and RPC APIs. It is
778
- # used by [gRPC](https://github.com/grpc). The error model is designed to be:
779
- # - Simple to use and understand for most users
780
- # - Flexible enough to meet unexpected needs
781
- # # Overview
782
- # The `Status` message contains three pieces of data: error code, error
783
- # message, and error details. The error code should be an enum value of
784
- # google.rpc.Code, but it may accept additional error codes if needed. The
785
- # error message should be a developer-facing English message that helps
786
- # developers *understand* and *resolve* the error. If a localized user-facing
787
- # error message is needed, put the localized message in the error details or
788
- # localize it in the client. The optional error details may contain arbitrary
789
- # information about the error. There is a predefined set of error detail types
790
- # in the package `google.rpc` that can be used for common error conditions.
791
- # # Language mapping
792
- # The `Status` message is the logical representation of the error model, but it
793
- # is not necessarily the actual wire format. When the `Status` message is
794
- # exposed in different client libraries and different wire protocols, it can be
795
- # mapped differently. For example, it will likely be mapped to some exceptions
796
- # in Java, but more likely mapped to some error codes in C.
797
- # # Other uses
798
- # The error model and the `Status` message can be used in a variety of
799
- # environments, either with or without APIs, to provide a
800
- # consistent developer experience across different environments.
801
- # Example uses of this error model include:
802
- # - Partial errors. If a service needs to return partial errors to the client,
803
- # it may embed the `Status` in the normal response to indicate the partial
804
- # errors.
805
- # - Workflow errors. A typical workflow has multiple steps. Each step may
806
- # have a `Status` message for error reporting.
807
- # - Batch operations. If a client uses batch request and batch response, the
808
- # `Status` message should be used directly inside batch response, one for
809
- # each error sub-response.
810
- # - Asynchronous operations. If an API call embeds asynchronous operation
811
- # results in its response, the status of those operations should be
812
- # represented directly using the `Status` message.
813
- # - Logging. If some API errors are stored in logs, the message `Status` could
814
- # be used directly after any stripping needed for security/privacy reasons.
712
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
713
+ # three pieces of data: error code, error message, and error details.
714
+ # You can find out more about this error model and how to work with it in the
715
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
815
716
  # Corresponds to the JSON property `error`
816
717
  # @return [Google::Apis::RuntimeconfigV1beta1::Status]
817
718
  attr_accessor :error
@@ -0,0 +1,35 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/securitycenter_v1p1alpha1/service.rb'
16
+ require 'google/apis/securitycenter_v1p1alpha1/classes.rb'
17
+ require 'google/apis/securitycenter_v1p1alpha1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Cloud Security Command Center API
22
+ #
23
+ # Cloud Security Command Center API provides access to temporal views of assets
24
+ # and findings within an organization.
25
+ #
26
+ # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
27
+ module SecuritycenterV1p1alpha1
28
+ VERSION = 'V1p1alpha1'
29
+ REVISION = '20190603'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,223 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module SecuritycenterV1p1alpha1
24
+
25
+ # A generic empty message that you can re-use to avoid defining duplicated
26
+ # empty messages in your APIs. A typical example is to use it as the request
27
+ # or the response type of an API method. For instance:
28
+ # service Foo `
29
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
30
+ # `
31
+ # The JSON representation for `Empty` is empty JSON object ````.
32
+ class Empty
33
+ include Google::Apis::Core::Hashable
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ end
42
+ end
43
+
44
+ # Response of asset discovery run
45
+ class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
46
+ include Google::Apis::Core::Hashable
47
+
48
+ # The duration between asset discovery run start and end
49
+ # Corresponds to the JSON property `duration`
50
+ # @return [String]
51
+ attr_accessor :duration
52
+
53
+ # The state of an asset discovery run.
54
+ # Corresponds to the JSON property `state`
55
+ # @return [String]
56
+ attr_accessor :state
57
+
58
+ def initialize(**args)
59
+ update!(**args)
60
+ end
61
+
62
+ # Update properties of this object
63
+ def update!(**args)
64
+ @duration = args[:duration] if args.key?(:duration)
65
+ @state = args[:state] if args.key?(:state)
66
+ end
67
+ end
68
+
69
+ # Response of asset discovery run
70
+ class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
71
+ include Google::Apis::Core::Hashable
72
+
73
+ # The duration between asset discovery run start and end
74
+ # Corresponds to the JSON property `duration`
75
+ # @return [String]
76
+ attr_accessor :duration
77
+
78
+ # The state of an asset discovery run.
79
+ # Corresponds to the JSON property `state`
80
+ # @return [String]
81
+ attr_accessor :state
82
+
83
+ def initialize(**args)
84
+ update!(**args)
85
+ end
86
+
87
+ # Update properties of this object
88
+ def update!(**args)
89
+ @duration = args[:duration] if args.key?(:duration)
90
+ @state = args[:state] if args.key?(:state)
91
+ end
92
+ end
93
+
94
+ # The response message for Operations.ListOperations.
95
+ class ListOperationsResponse
96
+ include Google::Apis::Core::Hashable
97
+
98
+ # The standard List next-page token.
99
+ # Corresponds to the JSON property `nextPageToken`
100
+ # @return [String]
101
+ attr_accessor :next_page_token
102
+
103
+ # A list of operations that matches the specified filter in the request.
104
+ # Corresponds to the JSON property `operations`
105
+ # @return [Array<Google::Apis::SecuritycenterV1p1alpha1::Operation>]
106
+ attr_accessor :operations
107
+
108
+ def initialize(**args)
109
+ update!(**args)
110
+ end
111
+
112
+ # Update properties of this object
113
+ def update!(**args)
114
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
115
+ @operations = args[:operations] if args.key?(:operations)
116
+ end
117
+ end
118
+
119
+ # This resource represents a long-running operation that is the result of a
120
+ # network API call.
121
+ class Operation
122
+ include Google::Apis::Core::Hashable
123
+
124
+ # If the value is `false`, it means the operation is still in progress.
125
+ # If `true`, the operation is completed, and either `error` or `response` is
126
+ # available.
127
+ # Corresponds to the JSON property `done`
128
+ # @return [Boolean]
129
+ attr_accessor :done
130
+ alias_method :done?, :done
131
+
132
+ # The `Status` type defines a logical error model that is suitable for
133
+ # different programming environments, including REST APIs and RPC APIs. It is
134
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
135
+ # three pieces of data: error code, error message, and error details.
136
+ # You can find out more about this error model and how to work with it in the
137
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
138
+ # Corresponds to the JSON property `error`
139
+ # @return [Google::Apis::SecuritycenterV1p1alpha1::Status]
140
+ attr_accessor :error
141
+
142
+ # Service-specific metadata associated with the operation. It typically
143
+ # contains progress information and common metadata such as create time.
144
+ # Some services might not provide such metadata. Any method that returns a
145
+ # long-running operation should document the metadata type, if any.
146
+ # Corresponds to the JSON property `metadata`
147
+ # @return [Hash<String,Object>]
148
+ attr_accessor :metadata
149
+
150
+ # The server-assigned name, which is only unique within the same service that
151
+ # originally returns it. If you use the default HTTP mapping, the
152
+ # `name` should be a resource name ending with `operations/`unique_id``.
153
+ # Corresponds to the JSON property `name`
154
+ # @return [String]
155
+ attr_accessor :name
156
+
157
+ # The normal response of the operation in case of success. If the original
158
+ # method returns no data on success, such as `Delete`, the response is
159
+ # `google.protobuf.Empty`. If the original method is standard
160
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
161
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
162
+ # is the original method name. For example, if the original method name
163
+ # is `TakeSnapshot()`, the inferred response type is
164
+ # `TakeSnapshotResponse`.
165
+ # Corresponds to the JSON property `response`
166
+ # @return [Hash<String,Object>]
167
+ attr_accessor :response
168
+
169
+ def initialize(**args)
170
+ update!(**args)
171
+ end
172
+
173
+ # Update properties of this object
174
+ def update!(**args)
175
+ @done = args[:done] if args.key?(:done)
176
+ @error = args[:error] if args.key?(:error)
177
+ @metadata = args[:metadata] if args.key?(:metadata)
178
+ @name = args[:name] if args.key?(:name)
179
+ @response = args[:response] if args.key?(:response)
180
+ end
181
+ end
182
+
183
+ # The `Status` type defines a logical error model that is suitable for
184
+ # different programming environments, including REST APIs and RPC APIs. It is
185
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
186
+ # three pieces of data: error code, error message, and error details.
187
+ # You can find out more about this error model and how to work with it in the
188
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
189
+ class Status
190
+ include Google::Apis::Core::Hashable
191
+
192
+ # The status code, which should be an enum value of google.rpc.Code.
193
+ # Corresponds to the JSON property `code`
194
+ # @return [Fixnum]
195
+ attr_accessor :code
196
+
197
+ # A list of messages that carry the error details. There is a common set of
198
+ # message types for APIs to use.
199
+ # Corresponds to the JSON property `details`
200
+ # @return [Array<Hash<String,Object>>]
201
+ attr_accessor :details
202
+
203
+ # A developer-facing error message, which should be in English. Any
204
+ # user-facing error message should be localized and sent in the
205
+ # google.rpc.Status.details field, or localized by the client.
206
+ # Corresponds to the JSON property `message`
207
+ # @return [String]
208
+ attr_accessor :message
209
+
210
+ def initialize(**args)
211
+ update!(**args)
212
+ end
213
+
214
+ # Update properties of this object
215
+ def update!(**args)
216
+ @code = args[:code] if args.key?(:code)
217
+ @details = args[:details] if args.key?(:details)
218
+ @message = args[:message] if args.key?(:message)
219
+ end
220
+ end
221
+ end
222
+ end
223
+ end
@@ -0,0 +1,114 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module SecuritycenterV1p1alpha1
24
+
25
+ class Empty
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ListOperationsResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Operation
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Status
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Empty
62
+ # @private
63
+ class Representation < Google::Apis::Core::JsonRepresentation
64
+ end
65
+ end
66
+
67
+ class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
68
+ # @private
69
+ class Representation < Google::Apis::Core::JsonRepresentation
70
+ property :duration, as: 'duration'
71
+ property :state, as: 'state'
72
+ end
73
+ end
74
+
75
+ class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
76
+ # @private
77
+ class Representation < Google::Apis::Core::JsonRepresentation
78
+ property :duration, as: 'duration'
79
+ property :state, as: 'state'
80
+ end
81
+ end
82
+
83
+ class ListOperationsResponse
84
+ # @private
85
+ class Representation < Google::Apis::Core::JsonRepresentation
86
+ property :next_page_token, as: 'nextPageToken'
87
+ collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1p1alpha1::Operation, decorator: Google::Apis::SecuritycenterV1p1alpha1::Operation::Representation
88
+
89
+ end
90
+ end
91
+
92
+ class Operation
93
+ # @private
94
+ class Representation < Google::Apis::Core::JsonRepresentation
95
+ property :done, as: 'done'
96
+ property :error, as: 'error', class: Google::Apis::SecuritycenterV1p1alpha1::Status, decorator: Google::Apis::SecuritycenterV1p1alpha1::Status::Representation
97
+
98
+ hash :metadata, as: 'metadata'
99
+ property :name, as: 'name'
100
+ hash :response, as: 'response'
101
+ end
102
+ end
103
+
104
+ class Status
105
+ # @private
106
+ class Representation < Google::Apis::Core::JsonRepresentation
107
+ property :code, as: 'code'
108
+ collection :details, as: 'details'
109
+ property :message, as: 'message'
110
+ end
111
+ end
112
+ end
113
+ end
114
+ end