google-api-client 0.37.2 → 0.37.3

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.
Files changed (177) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +74 -0
  3. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  4. data/generated/google/apis/accesscontextmanager_v1/classes.rb +11 -1
  5. data/generated/google/apis/accesscontextmanager_v1/representations.rb +1 -0
  6. data/generated/google/apis/accesscontextmanager_v1/service.rb +6 -5
  7. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  8. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +2 -1
  9. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +6 -5
  10. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  11. data/generated/google/apis/alertcenter_v1beta1/classes.rb +7 -71
  12. data/generated/google/apis/alertcenter_v1beta1/representations.rb +0 -31
  13. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  14. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  15. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  16. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +111 -9
  17. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +56 -0
  18. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +151 -0
  19. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  20. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +2 -2
  21. data/generated/google/apis/billingbudgets_v1beta1/service.rb +11 -0
  22. data/generated/google/apis/chat_v1.rb +1 -1
  23. data/generated/google/apis/chat_v1/classes.rb +4 -2
  24. data/generated/google/apis/classroom_v1.rb +1 -1
  25. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  26. data/generated/google/apis/cloudbuild_v1/classes.rb +23 -0
  27. data/generated/google/apis/cloudbuild_v1/representations.rb +3 -0
  28. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  29. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -0
  30. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  31. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -5
  32. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +8 -0
  34. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  35. data/generated/google/apis/clouddebugger_v2.rb +2 -2
  36. data/generated/google/apis/clouddebugger_v2/service.rb +1 -1
  37. data/generated/google/apis/clouderrorreporting_v1beta1.rb +2 -2
  38. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +1 -1
  39. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  40. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +2 -2
  41. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  42. data/generated/google/apis/cloudtasks_v2/classes.rb +30 -0
  43. data/generated/google/apis/cloudtasks_v2/representations.rb +15 -0
  44. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  45. data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
  46. data/generated/google/apis/cloudtrace_v2.rb +4 -4
  47. data/generated/google/apis/cloudtrace_v2/service.rb +3 -3
  48. data/generated/google/apis/cloudtrace_v2beta1.rb +4 -4
  49. data/generated/google/apis/cloudtrace_v2beta1/service.rb +3 -3
  50. data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
  51. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +2 -2
  52. data/generated/google/apis/container_v1.rb +1 -1
  53. data/generated/google/apis/container_v1/classes.rb +224 -66
  54. data/generated/google/apis/container_v1/representations.rb +70 -0
  55. data/generated/google/apis/container_v1/service.rb +116 -116
  56. data/generated/google/apis/container_v1beta1/classes.rb +18 -4
  57. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  58. data/generated/google/apis/content_v2.rb +1 -1
  59. data/generated/google/apis/content_v2/classes.rb +18 -2
  60. data/generated/google/apis/content_v2/service.rb +3 -1
  61. data/generated/google/apis/content_v2_1.rb +1 -1
  62. data/generated/google/apis/content_v2_1/classes.rb +51 -0
  63. data/generated/google/apis/content_v2_1/representations.rb +15 -0
  64. data/generated/google/apis/content_v2_1/service.rb +73 -1
  65. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  66. data/generated/google/apis/datacatalog_v1beta1/classes.rb +27 -0
  67. data/generated/google/apis/datacatalog_v1beta1/representations.rb +15 -0
  68. data/generated/google/apis/datacatalog_v1beta1/service.rb +43 -0
  69. data/generated/google/apis/dataproc_v1.rb +1 -1
  70. data/generated/google/apis/dataproc_v1/classes.rb +15 -0
  71. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  72. data/generated/google/apis/dialogflow_v2.rb +1 -1
  73. data/generated/google/apis/dialogflow_v2/classes.rb +11 -3
  74. data/generated/google/apis/dialogflow_v2/service.rb +555 -16
  75. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  76. data/generated/google/apis/dialogflow_v2beta1/classes.rb +11 -3
  77. data/generated/google/apis/dialogflow_v2beta1/service.rb +26 -42
  78. data/generated/google/apis/displayvideo_v1.rb +1 -1
  79. data/generated/google/apis/dlp_v2.rb +1 -1
  80. data/generated/google/apis/dlp_v2/classes.rb +417 -2
  81. data/generated/google/apis/dlp_v2/representations.rb +175 -0
  82. data/generated/google/apis/dlp_v2/service.rb +116 -0
  83. data/generated/google/apis/file_v1.rb +1 -1
  84. data/generated/google/apis/file_v1/classes.rb +1 -145
  85. data/generated/google/apis/file_v1/representations.rb +0 -34
  86. data/generated/google/apis/file_v1beta1.rb +1 -1
  87. data/generated/google/apis/file_v1beta1/classes.rb +1 -145
  88. data/generated/google/apis/file_v1beta1/representations.rb +0 -34
  89. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  90. data/generated/google/apis/firebase_v1beta1/service.rb +3 -3
  91. data/generated/google/apis/firebaserules_v1.rb +1 -1
  92. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  93. data/generated/google/apis/healthcare_v1beta1/classes.rb +4 -0
  94. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  95. data/generated/google/apis/iap_v1beta1.rb +1 -1
  96. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  97. data/generated/google/apis/logging_v2.rb +6 -7
  98. data/generated/google/apis/logging_v2/service.rb +5 -6
  99. data/generated/google/apis/manufacturers_v1.rb +1 -1
  100. data/generated/google/apis/manufacturers_v1/classes.rb +7 -0
  101. data/generated/google/apis/manufacturers_v1/representations.rb +1 -0
  102. data/generated/google/apis/ml_v1.rb +1 -1
  103. data/generated/google/apis/ml_v1/classes.rb +966 -21
  104. data/generated/google/apis/ml_v1/representations.rb +477 -0
  105. data/generated/google/apis/ml_v1/service.rb +491 -0
  106. data/generated/google/apis/{toolresults_v1.rb → networkmanagement_v1beta1.rb} +13 -9
  107. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +1856 -0
  108. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +661 -0
  109. data/generated/google/apis/networkmanagement_v1beta1/service.rb +664 -0
  110. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  111. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  112. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  113. data/generated/google/apis/recommender_v1beta1/classes.rb +214 -0
  114. data/generated/google/apis/recommender_v1beta1/representations.rb +96 -0
  115. data/generated/google/apis/recommender_v1beta1/service.rb +123 -0
  116. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  117. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  118. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  119. data/generated/google/apis/run_v1.rb +1 -1
  120. data/generated/google/apis/run_v1/classes.rb +84 -0
  121. data/generated/google/apis/run_v1/representations.rb +44 -0
  122. data/generated/google/apis/run_v1/service.rb +138 -0
  123. data/generated/google/apis/run_v1alpha1.rb +1 -1
  124. data/generated/google/apis/securitycenter_v1.rb +1 -1
  125. data/generated/google/apis/securitycenter_v1/classes.rb +154 -6
  126. data/generated/google/apis/securitycenter_v1/representations.rb +61 -0
  127. data/generated/google/apis/securitycenter_v1/service.rb +194 -6
  128. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  129. data/generated/google/apis/securitycenter_v1beta1/classes.rb +171 -0
  130. data/generated/google/apis/securitycenter_v1beta1/representations.rb +52 -0
  131. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  132. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +171 -0
  133. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +52 -0
  134. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  135. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +183 -6
  136. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +52 -0
  137. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +12 -6
  138. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  139. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +8 -7
  140. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  141. data/generated/google/apis/servicemanagement_v1/classes.rb +58 -1
  142. data/generated/google/apis/servicemanagement_v1/representations.rb +17 -0
  143. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  144. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  145. data/generated/google/apis/serviceusage_v1.rb +1 -1
  146. data/generated/google/apis/serviceusage_v1/classes.rb +8 -7
  147. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  148. data/generated/google/apis/serviceusage_v1beta1/classes.rb +280 -7
  149. data/generated/google/apis/serviceusage_v1beta1/representations.rb +117 -0
  150. data/generated/google/apis/serviceusage_v1beta1/service.rb +515 -0
  151. data/generated/google/apis/sheets_v4.rb +1 -1
  152. data/generated/google/apis/testing_v1.rb +1 -1
  153. data/generated/google/apis/testing_v1/classes.rb +7 -1
  154. data/generated/google/apis/testing_v1/representations.rb +1 -0
  155. data/generated/google/apis/tpu_v1.rb +1 -1
  156. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  157. data/generated/google/apis/translate_v3.rb +1 -1
  158. data/generated/google/apis/translate_v3/classes.rb +6 -3
  159. data/generated/google/apis/videointelligence_v1.rb +1 -1
  160. data/generated/google/apis/videointelligence_v1/classes.rb +13 -13
  161. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  162. data/generated/google/apis/videointelligence_v1beta2/classes.rb +13 -13
  163. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  164. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +13 -13
  165. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  166. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +13 -13
  167. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  168. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +13 -13
  169. data/generated/google/apis/vision_v1.rb +1 -1
  170. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  171. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  172. data/lib/google/apis/core/api_command.rb +4 -0
  173. data/lib/google/apis/version.rb +1 -1
  174. metadata +7 -7
  175. data/generated/google/apis/toolresults_v1/classes.rb +0 -696
  176. data/generated/google/apis/toolresults_v1/representations.rb +0 -438
  177. data/generated/google/apis/toolresults_v1/service.rb +0 -59
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/remote-build-execution/docs/
26
26
  module RemotebuildexecutionV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200225'
28
+ REVISION = '20200303'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/remote-build-execution/docs/
26
26
  module RemotebuildexecutionV1alpha
27
27
  VERSION = 'V1alpha'
28
- REVISION = '20200225'
28
+ REVISION = '20200303'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/remote-build-execution/docs/
26
26
  module RemotebuildexecutionV2
27
27
  VERSION = 'V2'
28
- REVISION = '20200225'
28
+ REVISION = '20200303'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/run/
27
27
  module RunV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200219'
29
+ REVISION = '20200302'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1776,6 +1776,90 @@ module Google
1776
1776
  end
1777
1777
  end
1778
1778
 
1779
+ # Cloud Run fully managed: not supported
1780
+ # Cloud Run on GKE: supported
1781
+ # Namespace provides a scope for Names.
1782
+ # Use of multiple namespaces is optional.
1783
+ class Namespace
1784
+ include Google::Apis::Core::Hashable
1785
+
1786
+ # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all
1787
+ # persisted resources must have, which includes all objects users must create.
1788
+ # Corresponds to the JSON property `metadata`
1789
+ # @return [Google::Apis::RunV1::ObjectMeta]
1790
+ attr_accessor :metadata
1791
+
1792
+ # Cloud Run fully managed: not supported
1793
+ # Cloud Run on GKE: supported
1794
+ # NamespaceSpec describes the attributes on a Namespace.
1795
+ # Corresponds to the JSON property `spec`
1796
+ # @return [Google::Apis::RunV1::NamespaceSpec]
1797
+ attr_accessor :spec
1798
+
1799
+ # Cloud Run fully managed: not supported
1800
+ # Cloud Run on GKE: supported
1801
+ # NamespaceStatus is information about the current status of a Namespace.
1802
+ # Corresponds to the JSON property `status`
1803
+ # @return [Google::Apis::RunV1::NamespaceStatus]
1804
+ attr_accessor :status
1805
+
1806
+ def initialize(**args)
1807
+ update!(**args)
1808
+ end
1809
+
1810
+ # Update properties of this object
1811
+ def update!(**args)
1812
+ @metadata = args[:metadata] if args.key?(:metadata)
1813
+ @spec = args[:spec] if args.key?(:spec)
1814
+ @status = args[:status] if args.key?(:status)
1815
+ end
1816
+ end
1817
+
1818
+ # Cloud Run fully managed: not supported
1819
+ # Cloud Run on GKE: supported
1820
+ # NamespaceSpec describes the attributes on a Namespace.
1821
+ class NamespaceSpec
1822
+ include Google::Apis::Core::Hashable
1823
+
1824
+ # Finalizers is an opaque list of values that must be empty to permanently
1825
+ # remove object from storage. More info:
1826
+ # https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
1827
+ # Corresponds to the JSON property `finalizers`
1828
+ # @return [Array<String>]
1829
+ attr_accessor :finalizers
1830
+
1831
+ def initialize(**args)
1832
+ update!(**args)
1833
+ end
1834
+
1835
+ # Update properties of this object
1836
+ def update!(**args)
1837
+ @finalizers = args[:finalizers] if args.key?(:finalizers)
1838
+ end
1839
+ end
1840
+
1841
+ # Cloud Run fully managed: not supported
1842
+ # Cloud Run on GKE: supported
1843
+ # NamespaceStatus is information about the current status of a Namespace.
1844
+ class NamespaceStatus
1845
+ include Google::Apis::Core::Hashable
1846
+
1847
+ # Phase is the current lifecycle phase of the namespace.
1848
+ # More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
1849
+ # Corresponds to the JSON property `phase`
1850
+ # @return [String]
1851
+ attr_accessor :phase
1852
+
1853
+ def initialize(**args)
1854
+ update!(**args)
1855
+ end
1856
+
1857
+ # Update properties of this object
1858
+ def update!(**args)
1859
+ @phase = args[:phase] if args.key?(:phase)
1860
+ end
1861
+ end
1862
+
1779
1863
  # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all
1780
1864
  # persisted resources must have, which includes all objects users must create.
1781
1865
  class ObjectMeta
@@ -244,6 +244,24 @@ module Google
244
244
  include Google::Apis::Core::JsonObjectSupport
245
245
  end
246
246
 
247
+ class Namespace
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class NamespaceSpec
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class NamespaceStatus
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
247
265
  class ObjectMeta
248
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
267
 
@@ -830,6 +848,32 @@ module Google
830
848
  end
831
849
  end
832
850
 
851
+ class Namespace
852
+ # @private
853
+ class Representation < Google::Apis::Core::JsonRepresentation
854
+ property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation
855
+
856
+ property :spec, as: 'spec', class: Google::Apis::RunV1::NamespaceSpec, decorator: Google::Apis::RunV1::NamespaceSpec::Representation
857
+
858
+ property :status, as: 'status', class: Google::Apis::RunV1::NamespaceStatus, decorator: Google::Apis::RunV1::NamespaceStatus::Representation
859
+
860
+ end
861
+ end
862
+
863
+ class NamespaceSpec
864
+ # @private
865
+ class Representation < Google::Apis::Core::JsonRepresentation
866
+ collection :finalizers, as: 'finalizers'
867
+ end
868
+ end
869
+
870
+ class NamespaceStatus
871
+ # @private
872
+ class Representation < Google::Apis::Core::JsonRepresentation
873
+ property :phase, as: 'phase'
874
+ end
875
+ end
876
+
833
877
  class ObjectMeta
834
878
  # @private
835
879
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -48,6 +48,75 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
+ # Rpc to get information about a namespace.
52
+ # @param [String] name
53
+ # Required. The name of the namespace being retrieved. If needed, replace
54
+ # `namespace_id` with the project ID.
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [Google::Apis::RequestOptions] options
61
+ # Request-specific options
62
+ #
63
+ # @yield [result, err] Result & error if block supplied
64
+ # @yieldparam result [Google::Apis::RunV1::Namespace] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::RunV1::Namespace]
68
+ #
69
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
72
+ def get_api_v1_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:get, 'api/v1/{+name}', options)
74
+ command.response_representation = Google::Apis::RunV1::Namespace::Representation
75
+ command.response_class = Google::Apis::RunV1::Namespace
76
+ command.params['name'] = name unless name.nil?
77
+ command.query['fields'] = fields unless fields.nil?
78
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
79
+ execute_or_queue_command(command, &block)
80
+ end
81
+
82
+ # Rpc to update a namespace.
83
+ # @param [String] name
84
+ # Required. The name of the namespace being retrieved. If needed, replace
85
+ # `namespace_id` with the project ID.
86
+ # @param [Google::Apis::RunV1::Namespace] namespace_object
87
+ # @param [String] update_mask
88
+ # Required. Indicates which fields in the provided namespace to update.
89
+ # This field is currently unused.
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [Google::Apis::RequestOptions] options
96
+ # Request-specific options
97
+ #
98
+ # @yield [result, err] Result & error if block supplied
99
+ # @yieldparam result [Google::Apis::RunV1::Namespace] parsed result object
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [Google::Apis::RunV1::Namespace]
103
+ #
104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
107
+ def patch_api_v1_namespace(name, namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:patch, 'api/v1/{+name}', options)
109
+ command.request_representation = Google::Apis::RunV1::Namespace::Representation
110
+ command.request_object = namespace_object
111
+ command.response_representation = Google::Apis::RunV1::Namespace::Representation
112
+ command.response_class = Google::Apis::RunV1::Namespace
113
+ command.params['name'] = name unless name.nil?
114
+ command.query['updateMask'] = update_mask unless update_mask.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ execute_or_queue_command(command, &block)
118
+ end
119
+
51
120
  # Creates a new secret.
52
121
  # @param [String] parent
53
122
  # Required. The project ID or project number in which this secret should
@@ -1216,6 +1285,75 @@ module Google
1216
1285
  execute_or_queue_command(command, &block)
1217
1286
  end
1218
1287
 
1288
+ # Rpc to get information about a namespace.
1289
+ # @param [String] name
1290
+ # Required. The name of the namespace being retrieved. If needed, replace
1291
+ # `namespace_id` with the project ID.
1292
+ # @param [String] fields
1293
+ # Selector specifying which fields to include in a partial response.
1294
+ # @param [String] quota_user
1295
+ # Available to use for quota purposes for server-side applications. Can be any
1296
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1297
+ # @param [Google::Apis::RequestOptions] options
1298
+ # Request-specific options
1299
+ #
1300
+ # @yield [result, err] Result & error if block supplied
1301
+ # @yieldparam result [Google::Apis::RunV1::Namespace] parsed result object
1302
+ # @yieldparam err [StandardError] error object if request failed
1303
+ #
1304
+ # @return [Google::Apis::RunV1::Namespace]
1305
+ #
1306
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1307
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1308
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1309
+ def get_project_location_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
1310
+ command = make_simple_command(:get, 'v1/{+name}', options)
1311
+ command.response_representation = Google::Apis::RunV1::Namespace::Representation
1312
+ command.response_class = Google::Apis::RunV1::Namespace
1313
+ command.params['name'] = name unless name.nil?
1314
+ command.query['fields'] = fields unless fields.nil?
1315
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1316
+ execute_or_queue_command(command, &block)
1317
+ end
1318
+
1319
+ # Rpc to update a namespace.
1320
+ # @param [String] name
1321
+ # Required. The name of the namespace being retrieved. If needed, replace
1322
+ # `namespace_id` with the project ID.
1323
+ # @param [Google::Apis::RunV1::Namespace] namespace_object
1324
+ # @param [String] update_mask
1325
+ # Required. Indicates which fields in the provided namespace to update.
1326
+ # This field is currently unused.
1327
+ # @param [String] fields
1328
+ # Selector specifying which fields to include in a partial response.
1329
+ # @param [String] quota_user
1330
+ # Available to use for quota purposes for server-side applications. Can be any
1331
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1332
+ # @param [Google::Apis::RequestOptions] options
1333
+ # Request-specific options
1334
+ #
1335
+ # @yield [result, err] Result & error if block supplied
1336
+ # @yieldparam result [Google::Apis::RunV1::Namespace] parsed result object
1337
+ # @yieldparam err [StandardError] error object if request failed
1338
+ #
1339
+ # @return [Google::Apis::RunV1::Namespace]
1340
+ #
1341
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1342
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1343
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1344
+ def patch_project_location_namespace(name, namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1345
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1346
+ command.request_representation = Google::Apis::RunV1::Namespace::Representation
1347
+ command.request_object = namespace_object
1348
+ command.response_representation = Google::Apis::RunV1::Namespace::Representation
1349
+ command.response_class = Google::Apis::RunV1::Namespace
1350
+ command.params['name'] = name unless name.nil?
1351
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1352
+ command.query['fields'] = fields unless fields.nil?
1353
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1354
+ execute_or_queue_command(command, &block)
1355
+ end
1356
+
1219
1357
  # Delete a revision.
1220
1358
  # @param [String] name
1221
1359
  # The name of the revision to delete.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/run/
27
27
  module RunV1alpha1
28
28
  VERSION = 'V1alpha1'
29
- REVISION = '20200219'
29
+ REVISION = '20200302'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
27
27
  module SecuritycenterV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200224'
29
+ REVISION = '20200306'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -543,6 +543,36 @@ module Google
543
543
  end
544
544
  end
545
545
 
546
+ # Cloud SCC's Notification
547
+ class GoogleCloudSecuritycenterV1NotificationMessage
548
+ include Google::Apis::Core::Hashable
549
+
550
+ # Cloud Security Command Center (Cloud SCC) finding.
551
+ # A finding is a record of assessment data like security, risk, health, or
552
+ # privacy, that is ingested into Cloud SCC for presentation, notification,
553
+ # analysis, policy testing, and enforcement. For example, a
554
+ # cross-site scripting (XSS) vulnerability in an App Engine application is a
555
+ # finding.
556
+ # Corresponds to the JSON property `finding`
557
+ # @return [Google::Apis::SecuritycenterV1::Finding]
558
+ attr_accessor :finding
559
+
560
+ # Name of the notification config that generated current notification.
561
+ # Corresponds to the JSON property `notificationConfigName`
562
+ # @return [String]
563
+ attr_accessor :notification_config_name
564
+
565
+ def initialize(**args)
566
+ update!(**args)
567
+ end
568
+
569
+ # Update properties of this object
570
+ def update!(**args)
571
+ @finding = args[:finding] if args.key?(:finding)
572
+ @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
573
+ end
574
+ end
575
+
546
576
  # Response of asset discovery run
547
577
  class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
548
578
  include Google::Apis::Core::Hashable
@@ -1173,12 +1203,18 @@ module Google
1173
1203
  # two times don't affect the result. For example, the results aren't affected
1174
1204
  # if the finding is made inactive and then active again.
1175
1205
  # Possible "state_change" values when compare_duration is specified:
1176
- # * "CHANGED": indicates that the finding was present at the start of
1177
- # compare_duration, but changed its state at read_time.
1178
- # * "UNCHANGED": indicates that the finding was present at the start of
1179
- # compare_duration and did not change state at read_time.
1180
- # * "ADDED": indicates that the finding was not present at the start
1181
- # of compare_duration, but was present at read_time.
1206
+ # * "CHANGED": indicates that the finding was present and matched the given
1207
+ # filter at the start of compare_duration, but changed its
1208
+ # state at read_time.
1209
+ # * "UNCHANGED": indicates that the finding was present and matched the given
1210
+ # filter at the start of compare_duration and did not change
1211
+ # state at read_time.
1212
+ # * "ADDED": indicates that the finding did not match the given filter or
1213
+ # was not present at the start of compare_duration, but was
1214
+ # present at read_time.
1215
+ # * "REMOVED": indicates that the finding was present and matched the
1216
+ # filter at the start of compare_duration, but did not match
1217
+ # the filter at read_time.
1182
1218
  # If compare_duration is not specified, then the only possible state_change
1183
1219
  # is "UNUSED", which will be the state_change set for all findings present
1184
1220
  # at read_time.
@@ -1505,6 +1541,32 @@ module Google
1505
1541
  end
1506
1542
  end
1507
1543
 
1544
+ # Response message for listing notification configs.
1545
+ class ListNotificationConfigsResponse
1546
+ include Google::Apis::Core::Hashable
1547
+
1548
+ # Token to retrieve the next page of results, or empty if there are no more
1549
+ # results.
1550
+ # Corresponds to the JSON property `nextPageToken`
1551
+ # @return [String]
1552
+ attr_accessor :next_page_token
1553
+
1554
+ # Notification configs belonging to the requested parent.
1555
+ # Corresponds to the JSON property `notificationConfigs`
1556
+ # @return [Array<Google::Apis::SecuritycenterV1::NotificationConfig>]
1557
+ attr_accessor :notification_configs
1558
+
1559
+ def initialize(**args)
1560
+ update!(**args)
1561
+ end
1562
+
1563
+ # Update properties of this object
1564
+ def update!(**args)
1565
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1566
+ @notification_configs = args[:notification_configs] if args.key?(:notification_configs)
1567
+ end
1568
+ end
1569
+
1508
1570
  # The response message for Operations.ListOperations.
1509
1571
  class ListOperationsResponse
1510
1572
  include Google::Apis::Core::Hashable
@@ -1556,6 +1618,57 @@ module Google
1556
1618
  end
1557
1619
  end
1558
1620
 
1621
+ # Cloud Security Command Center (Cloud SCC) notification configs.
1622
+ # A notification config is a Cloud SCC resource that contains the configuration
1623
+ # to send notifications for create/update events of findings, assets and etc.
1624
+ class NotificationConfig
1625
+ include Google::Apis::Core::Hashable
1626
+
1627
+ # The description of the notification config (max of 1024 characters).
1628
+ # Corresponds to the JSON property `description`
1629
+ # @return [String]
1630
+ attr_accessor :description
1631
+
1632
+ # The relative resource name of this notification config. See:
1633
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
1634
+ # Example:
1635
+ # "organizations/`organization_id`/notificationConfigs/notify_public_bucket".
1636
+ # Corresponds to the JSON property `name`
1637
+ # @return [String]
1638
+ attr_accessor :name
1639
+
1640
+ # The PubSub topic to send notifications to. Its format is
1641
+ # "projects/[project_id]/topics/[topic]".
1642
+ # Corresponds to the JSON property `pubsubTopic`
1643
+ # @return [String]
1644
+ attr_accessor :pubsub_topic
1645
+
1646
+ # Output only. The service account that needs "pubsub.topics.publish"
1647
+ # permission to publish to the PubSub topic.
1648
+ # Corresponds to the JSON property `serviceAccount`
1649
+ # @return [String]
1650
+ attr_accessor :service_account
1651
+
1652
+ # The config for streaming-based notifications, which send each event as soon
1653
+ # as it is detected.
1654
+ # Corresponds to the JSON property `streamingConfig`
1655
+ # @return [Google::Apis::SecuritycenterV1::StreamingConfig]
1656
+ attr_accessor :streaming_config
1657
+
1658
+ def initialize(**args)
1659
+ update!(**args)
1660
+ end
1661
+
1662
+ # Update properties of this object
1663
+ def update!(**args)
1664
+ @description = args[:description] if args.key?(:description)
1665
+ @name = args[:name] if args.key?(:name)
1666
+ @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
1667
+ @service_account = args[:service_account] if args.key?(:service_account)
1668
+ @streaming_config = args[:streaming_config] if args.key?(:streaming_config)
1669
+ end
1670
+ end
1671
+
1559
1672
  # This resource represents a long-running operation that is the result of a
1560
1673
  # network API call.
1561
1674
  class Operation
@@ -2140,6 +2253,41 @@ module Google
2140
2253
  end
2141
2254
  end
2142
2255
 
2256
+ # The config for streaming-based notifications, which send each event as soon
2257
+ # as it is detected.
2258
+ class StreamingConfig
2259
+ include Google::Apis::Core::Hashable
2260
+
2261
+ # Expression that defines the filter to apply across create/update events
2262
+ # of assets or findings as specified by the event type. The expression is a
2263
+ # list of zero or more restrictions combined via logical operators `AND`
2264
+ # and `OR`. Parentheses are supported, and `OR` has higher precedence than
2265
+ # `AND`.
2266
+ # Restrictions have the form `<field> <operator> <value>` and may have a
2267
+ # `-` character in front of them to indicate negation. The fields map to
2268
+ # those defined in the corresponding resource.
2269
+ # The supported operators are:
2270
+ # * `=` for all value types.
2271
+ # * `>`, `<`, `>=`, `<=` for integer values.
2272
+ # * `:`, meaning substring matching, for strings.
2273
+ # The supported value types are:
2274
+ # * string literals in quotes.
2275
+ # * integer literals without quotes.
2276
+ # * boolean literals `true` and `false` without quotes.
2277
+ # Corresponds to the JSON property `filter`
2278
+ # @return [String]
2279
+ attr_accessor :filter
2280
+
2281
+ def initialize(**args)
2282
+ update!(**args)
2283
+ end
2284
+
2285
+ # Update properties of this object
2286
+ def update!(**args)
2287
+ @filter = args[:filter] if args.key?(:filter)
2288
+ end
2289
+ end
2290
+
2143
2291
  # Request message for `TestIamPermissions` method.
2144
2292
  class TestIamPermissionsRequest
2145
2293
  include Google::Apis::Core::Hashable