google-api-client 0.37.1 → 0.37.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +105 -0
  3. data/generated/google/apis/accessapproval_v1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  5. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  6. data/generated/google/apis/accesscontextmanager_v1/classes.rb +2 -2
  7. data/generated/google/apis/accesscontextmanager_v1/service.rb +10 -8
  8. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  9. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +0 -38
  10. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +0 -16
  11. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  12. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  13. data/generated/google/apis/androidpublisher_v3/classes.rb +193 -0
  14. data/generated/google/apis/androidpublisher_v3/representations.rb +89 -0
  15. data/generated/google/apis/appengine_v1.rb +1 -1
  16. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  17. data/generated/google/apis/appengine_v1beta.rb +1 -1
  18. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  19. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  20. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  21. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +15 -14
  22. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  23. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  24. data/generated/google/apis/books_v1.rb +1 -1
  25. data/generated/google/apis/books_v1/classes.rb +86 -0
  26. data/generated/google/apis/books_v1/representations.rb +37 -0
  27. data/generated/google/apis/classroom_v1.rb +1 -1
  28. data/generated/google/apis/cloudasset_v1.rb +1 -1
  29. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  30. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  31. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  32. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  33. data/generated/google/apis/cloudiot_v1.rb +1 -1
  34. data/generated/google/apis/cloudkms_v1.rb +1 -1
  35. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  36. data/generated/google/apis/cloudsearch_v1/classes.rb +0 -2
  37. data/generated/google/apis/cloudsearch_v1/service.rb +12 -0
  38. data/generated/google/apis/cloudshell_v1.rb +1 -1
  39. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  40. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  41. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  42. data/generated/google/apis/cloudtrace_v2beta1.rb +1 -1
  43. data/generated/google/apis/composer_v1beta1.rb +1 -1
  44. data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
  45. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  46. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  47. data/generated/google/apis/content_v2.rb +1 -1
  48. data/generated/google/apis/content_v2/classes.rb +30 -26
  49. data/generated/google/apis/content_v2_1.rb +1 -1
  50. data/generated/google/apis/content_v2_1/classes.rb +30 -26
  51. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  52. data/generated/google/apis/datacatalog_v1beta1/classes.rb +25 -37
  53. data/generated/google/apis/datacatalog_v1beta1/representations.rb +2 -15
  54. data/generated/google/apis/datacatalog_v1beta1/service.rb +0 -43
  55. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  56. data/generated/google/apis/dataproc_v1beta2/classes.rb +15 -0
  57. data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
  58. data/generated/google/apis/datastore_v1.rb +1 -1
  59. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  60. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  61. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  62. data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -7
  63. data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -1
  64. data/generated/google/apis/dialogflow_v2.rb +1 -1
  65. data/generated/google/apis/dialogflow_v2/classes.rb +20 -231
  66. data/generated/google/apis/dialogflow_v2/representations.rb +1 -95
  67. data/generated/google/apis/dialogflow_v2/service.rb +26 -390
  68. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  69. data/generated/google/apis/dialogflow_v2beta1/classes.rb +23 -235
  70. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -95
  71. data/generated/google/apis/dialogflow_v2beta1/service.rb +68 -804
  72. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  73. data/generated/google/apis/displayvideo_v1.rb +38 -0
  74. data/generated/google/apis/displayvideo_v1/classes.rb +382 -0
  75. data/generated/google/apis/displayvideo_v1/representations.rb +167 -0
  76. data/generated/google/apis/displayvideo_v1/service.rb +176 -0
  77. data/generated/google/apis/dlp_v2.rb +1 -1
  78. data/generated/google/apis/dlp_v2/classes.rb +31 -0
  79. data/generated/google/apis/dlp_v2/representations.rb +5 -0
  80. data/generated/google/apis/docs_v1.rb +1 -1
  81. data/generated/google/apis/docs_v1/classes.rb +22 -0
  82. data/generated/google/apis/docs_v1/representations.rb +3 -0
  83. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  84. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  85. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  86. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +1 -1
  87. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  88. data/generated/google/apis/firestore_v1.rb +1 -1
  89. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  90. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  91. data/generated/google/apis/fitness_v1.rb +1 -1
  92. data/generated/google/apis/fitness_v1/service.rb +13 -9
  93. data/generated/google/apis/genomics_v1.rb +1 -1
  94. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  95. data/generated/google/apis/iam_v1.rb +1 -1
  96. data/generated/google/apis/language_v1.rb +1 -1
  97. data/generated/google/apis/language_v1beta1.rb +1 -1
  98. data/generated/google/apis/language_v1beta2.rb +1 -1
  99. data/generated/google/apis/logging_v2.rb +1 -1
  100. data/generated/google/apis/logging_v2/classes.rb +22 -35
  101. data/generated/google/apis/logging_v2/representations.rb +0 -2
  102. data/generated/google/apis/logging_v2/service.rb +14 -14
  103. data/generated/google/apis/managedidentities_v1.rb +35 -0
  104. data/generated/google/apis/managedidentities_v1/classes.rb +1662 -0
  105. data/generated/google/apis/managedidentities_v1/representations.rb +576 -0
  106. data/generated/google/apis/managedidentities_v1/service.rb +779 -0
  107. data/generated/google/apis/managedidentities_v1alpha1.rb +35 -0
  108. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +1661 -0
  109. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +576 -0
  110. data/generated/google/apis/managedidentities_v1alpha1/service.rb +782 -0
  111. data/generated/google/apis/managedidentities_v1beta1.rb +35 -0
  112. data/generated/google/apis/managedidentities_v1beta1/classes.rb +1659 -0
  113. data/generated/google/apis/managedidentities_v1beta1/representations.rb +576 -0
  114. data/generated/google/apis/managedidentities_v1beta1/service.rb +778 -0
  115. data/generated/google/apis/ml_v1.rb +1 -1
  116. data/generated/google/apis/ml_v1/classes.rb +23 -43
  117. data/generated/google/apis/oauth2_v2.rb +1 -1
  118. data/generated/google/apis/oauth2_v2/classes.rb +0 -68
  119. data/generated/google/apis/oauth2_v2/representations.rb +0 -32
  120. data/generated/google/apis/oauth2_v2/service.rb +0 -30
  121. data/generated/google/apis/pubsub_v1.rb +1 -1
  122. data/generated/google/apis/pubsub_v1/classes.rb +16 -12
  123. data/generated/google/apis/pubsub_v1/service.rb +22 -21
  124. data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
  125. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  126. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  127. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  128. data/generated/google/apis/run_v1.rb +1 -1
  129. data/generated/google/apis/run_v1/classes.rb +48 -0
  130. data/generated/google/apis/run_v1/representations.rb +17 -0
  131. data/generated/google/apis/run_v1/service.rb +208 -0
  132. data/generated/google/apis/run_v1alpha1.rb +1 -1
  133. data/generated/google/apis/run_v1alpha1/classes.rb +431 -280
  134. data/generated/google/apis/run_v1alpha1/representations.rb +156 -105
  135. data/generated/google/apis/run_v1alpha1/service.rb +874 -448
  136. data/generated/google/apis/run_v1beta1.rb +1 -1
  137. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  138. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  139. data/generated/google/apis/secretmanager_v1.rb +3 -3
  140. data/generated/google/apis/secretmanager_v1/service.rb +2 -2
  141. data/generated/google/apis/secretmanager_v1beta1.rb +3 -3
  142. data/generated/google/apis/secretmanager_v1beta1/service.rb +2 -2
  143. data/generated/google/apis/securitycenter_v1.rb +1 -1
  144. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  145. data/generated/google/apis/securitycenter_v1beta1/classes.rb +98 -98
  146. data/generated/google/apis/securitycenter_v1beta1/representations.rb +37 -37
  147. data/generated/google/apis/securitycenter_v1beta1/service.rb +36 -36
  148. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  149. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  150. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  151. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +56 -0
  152. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +17 -0
  153. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  154. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  155. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  156. data/generated/google/apis/servicenetworking_v1/classes.rb +56 -0
  157. data/generated/google/apis/servicenetworking_v1/representations.rb +17 -0
  158. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  159. data/generated/google/apis/servicenetworking_v1beta/classes.rb +56 -0
  160. data/generated/google/apis/servicenetworking_v1beta/representations.rb +17 -0
  161. data/generated/google/apis/serviceusage_v1.rb +1 -1
  162. data/generated/google/apis/serviceusage_v1/classes.rb +56 -0
  163. data/generated/google/apis/serviceusage_v1/representations.rb +17 -0
  164. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  165. data/generated/google/apis/serviceusage_v1beta1/classes.rb +56 -0
  166. data/generated/google/apis/serviceusage_v1beta1/representations.rb +17 -0
  167. data/generated/google/apis/spanner_v1.rb +1 -1
  168. data/generated/google/apis/spanner_v1/classes.rb +38 -11
  169. data/generated/google/apis/spanner_v1/representations.rb +15 -0
  170. data/generated/google/apis/speech_v1.rb +1 -1
  171. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  172. data/generated/google/apis/speech_v2beta1.rb +1 -1
  173. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  174. data/generated/google/apis/streetviewpublish_v1/service.rb +1 -1
  175. data/generated/google/apis/texttospeech_v1.rb +1 -1
  176. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  177. data/generated/google/apis/toolresults_v1.rb +1 -1
  178. data/generated/google/apis/toolresults_v1/service.rb +1 -1
  179. data/generated/google/apis/translate_v3.rb +1 -1
  180. data/generated/google/apis/translate_v3beta1.rb +1 -1
  181. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  182. data/generated/google/apis/websecurityscanner_v1/classes.rb +6 -0
  183. data/generated/google/apis/websecurityscanner_v1/representations.rb +1 -0
  184. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  185. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +6 -0
  186. data/generated/google/apis/websecurityscanner_v1beta/representations.rb +1 -0
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtube_v3.rb +1 -1
  189. data/generated/google/apis/youtube_v3/classes.rb +72 -33
  190. data/generated/google/apis/youtube_v3/representations.rb +32 -4
  191. data/lib/google/apis/version.rb +1 -1
  192. metadata +19 -3
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/pubsub/docs
26
26
  module PubsubV1beta1a
27
27
  VERSION = 'V1beta1a'
28
- REVISION = '20200211'
28
+ REVISION = '20200218'
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 RemotebuildexecutionV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200218'
28
+ REVISION = '20200225'
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 = '20200218'
28
+ REVISION = '20200225'
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 = '20200218'
28
+ REVISION = '20200225'
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 = '20200130'
29
+ REVISION = '20200219'
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'
@@ -2660,6 +2660,54 @@ module Google
2660
2660
  end
2661
2661
  end
2662
2662
 
2663
+ # Cloud Run fully managed: not supported
2664
+ # Cloud Run on GKE: supported
2665
+ # Secret holds secret data of a certain type. The total bytes of the values in
2666
+ # the Data field must be less than MaxSecretSize bytes.
2667
+ class Secret
2668
+ include Google::Apis::Core::Hashable
2669
+
2670
+ # Data contains the secret data. Each key must consist of alphanumeric
2671
+ # characters, '-', '_' or '.'. The serialized form of the secret data is a
2672
+ # base64 encoded string, representing the arbitrary (possibly non-string)
2673
+ # data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
2674
+ # Corresponds to the JSON property `data`
2675
+ # @return [Hash<String,String>]
2676
+ attr_accessor :data
2677
+
2678
+ # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all
2679
+ # persisted resources must have, which includes all objects users must create.
2680
+ # Corresponds to the JSON property `metadata`
2681
+ # @return [Google::Apis::RunV1::ObjectMeta]
2682
+ attr_accessor :metadata
2683
+
2684
+ # stringData allows specifying non-binary secret data in string form.
2685
+ # It is provided as a write-only convenience method.
2686
+ # All keys and values are merged into the data field on write, overwriting
2687
+ # any existing values. It is never output when reading from the API.
2688
+ # +k8s:conversion-gen=false
2689
+ # Corresponds to the JSON property `stringData`
2690
+ # @return [Hash<String,String>]
2691
+ attr_accessor :string_data
2692
+
2693
+ # Used to facilitate programmatic handling of secret data.
2694
+ # Corresponds to the JSON property `type`
2695
+ # @return [String]
2696
+ attr_accessor :type
2697
+
2698
+ def initialize(**args)
2699
+ update!(**args)
2700
+ end
2701
+
2702
+ # Update properties of this object
2703
+ def update!(**args)
2704
+ @data = args[:data] if args.key?(:data)
2705
+ @metadata = args[:metadata] if args.key?(:metadata)
2706
+ @string_data = args[:string_data] if args.key?(:string_data)
2707
+ @type = args[:type] if args.key?(:type)
2708
+ end
2709
+ end
2710
+
2663
2711
  # Cloud Run fully managed: not supported
2664
2712
  # Cloud Run for Anthos: supported
2665
2713
  # SecretEnvSource selects a Secret to populate the environment
@@ -322,6 +322,12 @@ module Google
322
322
  include Google::Apis::Core::JsonObjectSupport
323
323
  end
324
324
 
325
+ class Secret
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
325
331
  class SecretEnvSource
326
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
333
 
@@ -985,6 +991,17 @@ module Google
985
991
  end
986
992
  end
987
993
 
994
+ class Secret
995
+ # @private
996
+ class Representation < Google::Apis::Core::JsonRepresentation
997
+ hash :data, as: 'data'
998
+ property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation
999
+
1000
+ hash :string_data, as: 'stringData'
1001
+ property :type, as: 'type'
1002
+ end
1003
+ end
1004
+
988
1005
  class SecretEnvSource
989
1006
  # @private
990
1007
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -48,6 +48,110 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
+ # Creates a new secret.
52
+ # @param [String] parent
53
+ # Required. The project ID or project number in which this secret should
54
+ # be created.
55
+ # @param [Google::Apis::RunV1::Secret] secret_object
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
+ # @param [String] quota_user
59
+ # Available to use for quota purposes for server-side applications. Can be any
60
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
61
+ # @param [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::RunV1::Secret] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::RunV1::Secret]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def create_api_v1_namespace_secret(parent, secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'api/v1/{+parent}/secrets', options)
75
+ command.request_representation = Google::Apis::RunV1::Secret::Representation
76
+ command.request_object = secret_object
77
+ command.response_representation = Google::Apis::RunV1::Secret::Representation
78
+ command.response_class = Google::Apis::RunV1::Secret
79
+ command.params['parent'] = parent unless parent.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Rpc to get information about a secret.
86
+ # @param [String] name
87
+ # Required. The name of the secret being retrieved. If needed, replace
88
+ # `namespace_id` with the project ID.
89
+ # @param [String] fields
90
+ # Selector specifying which fields to include in a partial response.
91
+ # @param [String] quota_user
92
+ # Available to use for quota purposes for server-side applications. Can be any
93
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
94
+ # @param [Google::Apis::RequestOptions] options
95
+ # Request-specific options
96
+ #
97
+ # @yield [result, err] Result & error if block supplied
98
+ # @yieldparam result [Google::Apis::RunV1::Secret] parsed result object
99
+ # @yieldparam err [StandardError] error object if request failed
100
+ #
101
+ # @return [Google::Apis::RunV1::Secret]
102
+ #
103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
106
+ def get_api_v1_namespace_secret(name, fields: nil, quota_user: nil, options: nil, &block)
107
+ command = make_simple_command(:get, 'api/v1/{+name}', options)
108
+ command.response_representation = Google::Apis::RunV1::Secret::Representation
109
+ command.response_class = Google::Apis::RunV1::Secret
110
+ command.params['name'] = name unless name.nil?
111
+ command.query['fields'] = fields unless fields.nil?
112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
113
+ execute_or_queue_command(command, &block)
114
+ end
115
+
116
+ # Rpc to replace a secret.
117
+ # Only the spec and metadata labels and annotations are modifiable. After
118
+ # the Update request, Cloud Run will work to make the 'status'
119
+ # match the requested 'spec'.
120
+ # May provide metadata.resourceVersion to enforce update from last read for
121
+ # optimistic concurrency control.
122
+ # @param [String] name
123
+ # Required. The name of the secret being retrieved. If needed, replace
124
+ # `namespace_id` with the project ID.
125
+ # @param [Google::Apis::RunV1::Secret] secret_object
126
+ # @param [String] fields
127
+ # Selector specifying which fields to include in a partial response.
128
+ # @param [String] quota_user
129
+ # Available to use for quota purposes for server-side applications. Can be any
130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
131
+ # @param [Google::Apis::RequestOptions] options
132
+ # Request-specific options
133
+ #
134
+ # @yield [result, err] Result & error if block supplied
135
+ # @yieldparam result [Google::Apis::RunV1::Secret] parsed result object
136
+ # @yieldparam err [StandardError] error object if request failed
137
+ #
138
+ # @return [Google::Apis::RunV1::Secret]
139
+ #
140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
143
+ def replace_api_v1_namespace_secret_secret(name, secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
144
+ command = make_simple_command(:put, 'api/v1/{+name}', options)
145
+ command.request_representation = Google::Apis::RunV1::Secret::Representation
146
+ command.request_object = secret_object
147
+ command.response_representation = Google::Apis::RunV1::Secret::Representation
148
+ command.response_class = Google::Apis::RunV1::Secret
149
+ command.params['name'] = name unless name.nil?
150
+ command.query['fields'] = fields unless fields.nil?
151
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
152
+ execute_or_queue_command(command, &block)
153
+ end
154
+
51
155
  # List authorized domains.
52
156
  # @param [String] parent
53
157
  # Name of the parent Application resource. Example: `apps/myapp`.
@@ -1336,6 +1440,110 @@ module Google
1336
1440
  execute_or_queue_command(command, &block)
1337
1441
  end
1338
1442
 
1443
+ # Creates a new secret.
1444
+ # @param [String] parent
1445
+ # Required. The project ID or project number in which this secret should
1446
+ # be created.
1447
+ # @param [Google::Apis::RunV1::Secret] secret_object
1448
+ # @param [String] fields
1449
+ # Selector specifying which fields to include in a partial response.
1450
+ # @param [String] quota_user
1451
+ # Available to use for quota purposes for server-side applications. Can be any
1452
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1453
+ # @param [Google::Apis::RequestOptions] options
1454
+ # Request-specific options
1455
+ #
1456
+ # @yield [result, err] Result & error if block supplied
1457
+ # @yieldparam result [Google::Apis::RunV1::Secret] parsed result object
1458
+ # @yieldparam err [StandardError] error object if request failed
1459
+ #
1460
+ # @return [Google::Apis::RunV1::Secret]
1461
+ #
1462
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1463
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1464
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1465
+ def create_project_location_secret(parent, secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1466
+ command = make_simple_command(:post, 'v1/{+parent}/secrets', options)
1467
+ command.request_representation = Google::Apis::RunV1::Secret::Representation
1468
+ command.request_object = secret_object
1469
+ command.response_representation = Google::Apis::RunV1::Secret::Representation
1470
+ command.response_class = Google::Apis::RunV1::Secret
1471
+ command.params['parent'] = parent unless parent.nil?
1472
+ command.query['fields'] = fields unless fields.nil?
1473
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1474
+ execute_or_queue_command(command, &block)
1475
+ end
1476
+
1477
+ # Rpc to get information about a secret.
1478
+ # @param [String] name
1479
+ # Required. The name of the secret being retrieved. If needed, replace
1480
+ # `namespace_id` with the project ID.
1481
+ # @param [String] fields
1482
+ # Selector specifying which fields to include in a partial response.
1483
+ # @param [String] quota_user
1484
+ # Available to use for quota purposes for server-side applications. Can be any
1485
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1486
+ # @param [Google::Apis::RequestOptions] options
1487
+ # Request-specific options
1488
+ #
1489
+ # @yield [result, err] Result & error if block supplied
1490
+ # @yieldparam result [Google::Apis::RunV1::Secret] parsed result object
1491
+ # @yieldparam err [StandardError] error object if request failed
1492
+ #
1493
+ # @return [Google::Apis::RunV1::Secret]
1494
+ #
1495
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1496
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1497
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1498
+ def get_project_location_secret(name, fields: nil, quota_user: nil, options: nil, &block)
1499
+ command = make_simple_command(:get, 'v1/{+name}', options)
1500
+ command.response_representation = Google::Apis::RunV1::Secret::Representation
1501
+ command.response_class = Google::Apis::RunV1::Secret
1502
+ command.params['name'] = name unless name.nil?
1503
+ command.query['fields'] = fields unless fields.nil?
1504
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1505
+ execute_or_queue_command(command, &block)
1506
+ end
1507
+
1508
+ # Rpc to replace a secret.
1509
+ # Only the spec and metadata labels and annotations are modifiable. After
1510
+ # the Update request, Cloud Run will work to make the 'status'
1511
+ # match the requested 'spec'.
1512
+ # May provide metadata.resourceVersion to enforce update from last read for
1513
+ # optimistic concurrency control.
1514
+ # @param [String] name
1515
+ # Required. The name of the secret being retrieved. If needed, replace
1516
+ # `namespace_id` with the project ID.
1517
+ # @param [Google::Apis::RunV1::Secret] secret_object
1518
+ # @param [String] fields
1519
+ # Selector specifying which fields to include in a partial response.
1520
+ # @param [String] quota_user
1521
+ # Available to use for quota purposes for server-side applications. Can be any
1522
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1523
+ # @param [Google::Apis::RequestOptions] options
1524
+ # Request-specific options
1525
+ #
1526
+ # @yield [result, err] Result & error if block supplied
1527
+ # @yieldparam result [Google::Apis::RunV1::Secret] parsed result object
1528
+ # @yieldparam err [StandardError] error object if request failed
1529
+ #
1530
+ # @return [Google::Apis::RunV1::Secret]
1531
+ #
1532
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1533
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1534
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1535
+ def replace_project_location_secret_secret(name, secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1536
+ command = make_simple_command(:put, 'v1/{+name}', options)
1537
+ command.request_representation = Google::Apis::RunV1::Secret::Representation
1538
+ command.request_object = secret_object
1539
+ command.response_representation = Google::Apis::RunV1::Secret::Representation
1540
+ command.response_class = Google::Apis::RunV1::Secret
1541
+ command.params['name'] = name unless name.nil?
1542
+ command.query['fields'] = fields unless fields.nil?
1543
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1544
+ execute_or_queue_command(command, &block)
1545
+ end
1546
+
1339
1547
  # Create a service.
1340
1548
  # @param [String] parent
1341
1549
  # The namespace in which the service should be created.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/run/
27
27
  module RunV1alpha1
28
28
  VERSION = 'V1alpha1'
29
- REVISION = '20200130'
29
+ REVISION = '20200219'
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'
@@ -635,6 +635,319 @@ module Google
635
635
  end
636
636
  end
637
637
 
638
+ # The CloudSchedulerSource resource.
639
+ class CloudSchedulerSource
640
+ include Google::Apis::Core::Hashable
641
+
642
+ # The API version for this call such as "events.cloud.google.com/v1alpha1".
643
+ # Corresponds to the JSON property `apiVersion`
644
+ # @return [String]
645
+ attr_accessor :api_version
646
+
647
+ # The kind of resource, in this case "CloudSchedulerSource".
648
+ # Corresponds to the JSON property `kind`
649
+ # @return [String]
650
+ attr_accessor :kind
651
+
652
+ # ObjectMeta is metadata that all persisted resources must have, which includes
653
+ # all objects users must create.
654
+ # Corresponds to the JSON property `metadata`
655
+ # @return [Google::Apis::RunV1alpha1::ObjectMeta]
656
+ attr_accessor :metadata
657
+
658
+ # The desired state of the CloudSchedulerSource.
659
+ # Corresponds to the JSON property `spec`
660
+ # @return [Google::Apis::RunV1alpha1::CloudSchedulerSourceSpec]
661
+ attr_accessor :spec
662
+
663
+ # CloudSchedulerSourceStatus represents the current state of a
664
+ # CloudSchedulerSource.
665
+ # Corresponds to the JSON property `status`
666
+ # @return [Google::Apis::RunV1alpha1::CloudSchedulerSourceStatus]
667
+ attr_accessor :status
668
+
669
+ def initialize(**args)
670
+ update!(**args)
671
+ end
672
+
673
+ # Update properties of this object
674
+ def update!(**args)
675
+ @api_version = args[:api_version] if args.key?(:api_version)
676
+ @kind = args[:kind] if args.key?(:kind)
677
+ @metadata = args[:metadata] if args.key?(:metadata)
678
+ @spec = args[:spec] if args.key?(:spec)
679
+ @status = args[:status] if args.key?(:status)
680
+ end
681
+ end
682
+
683
+ # The desired state of the CloudSchedulerSource.
684
+ class CloudSchedulerSourceSpec
685
+ include Google::Apis::Core::Hashable
686
+
687
+ # CloudEventOverrides defines arguments for a Source that control the output
688
+ # format of the CloudEvents produced by the Source.
689
+ # Corresponds to the JSON property `ceOverrides`
690
+ # @return [Google::Apis::RunV1alpha1::CloudEventOverrides]
691
+ attr_accessor :ce_overrides
692
+
693
+ # Data to send in the payload of the Event.
694
+ # Corresponds to the JSON property `data`
695
+ # @return [String]
696
+ attr_accessor :data
697
+
698
+ # Location to create the Scheduler job in.
699
+ # Corresponds to the JSON property `location`
700
+ # @return [String]
701
+ attr_accessor :location
702
+
703
+ # Project is the ID of the Google Cloud Project that the CloudPubSubSource
704
+ # Topic exists in. If omitted, defaults to same as the cluster.
705
+ # Corresponds to the JSON property `project`
706
+ # @return [String]
707
+ attr_accessor :project
708
+
709
+ # Cloud Run fully managed: not supported
710
+ # Cloud Run on GKE: supported
711
+ # SecretKeySelector selects a key of a Secret.
712
+ # Corresponds to the JSON property `pubsubSecret`
713
+ # @return [Google::Apis::RunV1alpha1::SecretKeySelector]
714
+ attr_accessor :pubsub_secret
715
+
716
+ # Schedule in cron format, for example: "* * * * *" would be run
717
+ # every minute.
718
+ # Corresponds to the JSON property `schedule`
719
+ # @return [String]
720
+ attr_accessor :schedule
721
+
722
+ # Cloud Run fully managed: not supported
723
+ # Cloud Run on GKE: supported
724
+ # SecretKeySelector selects a key of a Secret.
725
+ # Corresponds to the JSON property `secret`
726
+ # @return [Google::Apis::RunV1alpha1::SecretKeySelector]
727
+ attr_accessor :secret
728
+
729
+ # Sink is a reference to an object that will resolve to a domain name or a
730
+ # URI directly to use as the sink.
731
+ # Corresponds to the JSON property `sink`
732
+ # @return [Google::Apis::RunV1alpha1::Destination]
733
+ attr_accessor :sink
734
+
735
+ def initialize(**args)
736
+ update!(**args)
737
+ end
738
+
739
+ # Update properties of this object
740
+ def update!(**args)
741
+ @ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides)
742
+ @data = args[:data] if args.key?(:data)
743
+ @location = args[:location] if args.key?(:location)
744
+ @project = args[:project] if args.key?(:project)
745
+ @pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret)
746
+ @schedule = args[:schedule] if args.key?(:schedule)
747
+ @secret = args[:secret] if args.key?(:secret)
748
+ @sink = args[:sink] if args.key?(:sink)
749
+ end
750
+ end
751
+
752
+ # CloudSchedulerSourceStatus represents the current state of a
753
+ # CloudSchedulerSource.
754
+ class CloudSchedulerSourceStatus
755
+ include Google::Apis::Core::Hashable
756
+
757
+ # Array of observed CloudSchedulerSourceConditions, indicating the current
758
+ # state of the CloudSchedulerSource.
759
+ # Corresponds to the JSON property `conditions`
760
+ # @return [Array<Google::Apis::RunV1alpha1::Condition>]
761
+ attr_accessor :conditions
762
+
763
+ # ObservedGeneration is the 'Generation' of the CloudSchedulerSource that
764
+ # was last processed by the controller.
765
+ # Corresponds to the JSON property `observedGeneration`
766
+ # @return [Fixnum]
767
+ attr_accessor :observed_generation
768
+
769
+ # SinkURI is the current active sink URI that has been configured for the
770
+ # Source.
771
+ # Corresponds to the JSON property `sinkUri`
772
+ # @return [String]
773
+ attr_accessor :sink_uri
774
+
775
+ def initialize(**args)
776
+ update!(**args)
777
+ end
778
+
779
+ # Update properties of this object
780
+ def update!(**args)
781
+ @conditions = args[:conditions] if args.key?(:conditions)
782
+ @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
783
+ @sink_uri = args[:sink_uri] if args.key?(:sink_uri)
784
+ end
785
+ end
786
+
787
+ # The CloudStorageSource resource.
788
+ class CloudStorageSource
789
+ include Google::Apis::Core::Hashable
790
+
791
+ # The API version for this call such as "events.cloud.google.com/v1alpha1".
792
+ # Corresponds to the JSON property `apiVersion`
793
+ # @return [String]
794
+ attr_accessor :api_version
795
+
796
+ # The kind of resource, in this case "CloudStorageSource".
797
+ # Corresponds to the JSON property `kind`
798
+ # @return [String]
799
+ attr_accessor :kind
800
+
801
+ # ObjectMeta is metadata that all persisted resources must have, which includes
802
+ # all objects users must create.
803
+ # Corresponds to the JSON property `metadata`
804
+ # @return [Google::Apis::RunV1alpha1::ObjectMeta]
805
+ attr_accessor :metadata
806
+
807
+ # The desired state of the CloudStorageSource.
808
+ # Corresponds to the JSON property `spec`
809
+ # @return [Google::Apis::RunV1alpha1::CloudStorageSourceSpec]
810
+ attr_accessor :spec
811
+
812
+ # CloudStorageSourceStatus represents the current state of a
813
+ # CloudStorageSource.
814
+ # Corresponds to the JSON property `status`
815
+ # @return [Google::Apis::RunV1alpha1::CloudStorageSourceStatus]
816
+ attr_accessor :status
817
+
818
+ def initialize(**args)
819
+ update!(**args)
820
+ end
821
+
822
+ # Update properties of this object
823
+ def update!(**args)
824
+ @api_version = args[:api_version] if args.key?(:api_version)
825
+ @kind = args[:kind] if args.key?(:kind)
826
+ @metadata = args[:metadata] if args.key?(:metadata)
827
+ @spec = args[:spec] if args.key?(:spec)
828
+ @status = args[:status] if args.key?(:status)
829
+ end
830
+ end
831
+
832
+ # The desired state of the CloudStorageSource.
833
+ class CloudStorageSourceSpec
834
+ include Google::Apis::Core::Hashable
835
+
836
+ # Bucket to subscribe to.
837
+ # Corresponds to the JSON property `bucket`
838
+ # @return [String]
839
+ attr_accessor :bucket
840
+
841
+ # CloudEventOverrides defines arguments for a Source that control the output
842
+ # format of the CloudEvents produced by the Source.
843
+ # Corresponds to the JSON property `ceOverrides`
844
+ # @return [Google::Apis::RunV1alpha1::CloudEventOverrides]
845
+ attr_accessor :ce_overrides
846
+
847
+ # EventTypes to subscribe to. If unspecified, then subscribe to all events.
848
+ # Corresponds to the JSON property `eventTypes`
849
+ # @return [Array<String>]
850
+ attr_accessor :event_types
851
+
852
+ # ObjectNamePrefix limits the notifications to objects with this prefix.
853
+ # Corresponds to the JSON property `objectNamePrefix`
854
+ # @return [String]
855
+ attr_accessor :object_name_prefix
856
+
857
+ # PayloadFormat specifies the contents of the message payload.
858
+ # See https://cloud.google.com/storage/docs/pubsub-notifications#payload.
859
+ # Corresponds to the JSON property `payloadFormat`
860
+ # @return [String]
861
+ attr_accessor :payload_format
862
+
863
+ # Project is the ID of the Google Cloud Project that the PubSub Topic exists
864
+ # in. If omitted, defaults to same as the cluster.
865
+ # Corresponds to the JSON property `project`
866
+ # @return [String]
867
+ attr_accessor :project
868
+
869
+ # Cloud Run fully managed: not supported
870
+ # Cloud Run on GKE: supported
871
+ # SecretKeySelector selects a key of a Secret.
872
+ # Corresponds to the JSON property `pubsubSecret`
873
+ # @return [Google::Apis::RunV1alpha1::SecretKeySelector]
874
+ attr_accessor :pubsub_secret
875
+
876
+ # Cloud Run fully managed: not supported
877
+ # Cloud Run on GKE: supported
878
+ # SecretKeySelector selects a key of a Secret.
879
+ # Corresponds to the JSON property `secret`
880
+ # @return [Google::Apis::RunV1alpha1::SecretKeySelector]
881
+ attr_accessor :secret
882
+
883
+ # ServiceAccountName holds the name of the Kubernetes service account
884
+ # as which the underlying K8s resources should be run. If unspecified
885
+ # this will default to the "default" service account for the namespace
886
+ # in which the GCS exists.
887
+ # Corresponds to the JSON property `serviceAccountName`
888
+ # @return [String]
889
+ attr_accessor :service_account_name
890
+
891
+ # Sink is a reference to an object that will resolve to a domain name or a
892
+ # URI directly to use as the sink.
893
+ # Corresponds to the JSON property `sink`
894
+ # @return [Google::Apis::RunV1alpha1::Destination]
895
+ attr_accessor :sink
896
+
897
+ def initialize(**args)
898
+ update!(**args)
899
+ end
900
+
901
+ # Update properties of this object
902
+ def update!(**args)
903
+ @bucket = args[:bucket] if args.key?(:bucket)
904
+ @ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides)
905
+ @event_types = args[:event_types] if args.key?(:event_types)
906
+ @object_name_prefix = args[:object_name_prefix] if args.key?(:object_name_prefix)
907
+ @payload_format = args[:payload_format] if args.key?(:payload_format)
908
+ @project = args[:project] if args.key?(:project)
909
+ @pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret)
910
+ @secret = args[:secret] if args.key?(:secret)
911
+ @service_account_name = args[:service_account_name] if args.key?(:service_account_name)
912
+ @sink = args[:sink] if args.key?(:sink)
913
+ end
914
+ end
915
+
916
+ # CloudStorageSourceStatus represents the current state of a
917
+ # CloudStorageSource.
918
+ class CloudStorageSourceStatus
919
+ include Google::Apis::Core::Hashable
920
+
921
+ # Array of observed CloudStorageSourceConditions, indicating the current
922
+ # state of the CloudStorageSource.
923
+ # Corresponds to the JSON property `conditions`
924
+ # @return [Array<Google::Apis::RunV1alpha1::Condition>]
925
+ attr_accessor :conditions
926
+
927
+ # ObservedGeneration is the 'Generation' of the CloudStorageSource that
928
+ # was last processed by the controller.
929
+ # Corresponds to the JSON property `observedGeneration`
930
+ # @return [Fixnum]
931
+ attr_accessor :observed_generation
932
+
933
+ # SinkURI is the current active sink URI that has been configured for the
934
+ # Source.
935
+ # Corresponds to the JSON property `sinkUri`
936
+ # @return [String]
937
+ attr_accessor :sink_uri
938
+
939
+ def initialize(**args)
940
+ update!(**args)
941
+ end
942
+
943
+ # Update properties of this object
944
+ def update!(**args)
945
+ @conditions = args[:conditions] if args.key?(:conditions)
946
+ @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
947
+ @sink_uri = args[:sink_uri] if args.key?(:sink_uri)
948
+ end
949
+ end
950
+
638
951
  # Condition defines a generic condition for a Resource
639
952
  class Condition
640
953
  include Google::Apis::Core::Hashable
@@ -1839,49 +2152,6 @@ module Google
1839
2152
  end
1840
2153
  end
1841
2154
 
1842
- # Initializer is information about an initializer that has not yet completed.
1843
- class Initializer
1844
- include Google::Apis::Core::Hashable
1845
-
1846
- # name of the process that is responsible for initializing this object.
1847
- # Corresponds to the JSON property `name`
1848
- # @return [String]
1849
- attr_accessor :name
1850
-
1851
- def initialize(**args)
1852
- update!(**args)
1853
- end
1854
-
1855
- # Update properties of this object
1856
- def update!(**args)
1857
- @name = args[:name] if args.key?(:name)
1858
- end
1859
- end
1860
-
1861
- # Initializers tracks the progress of initialization.
1862
- class Initializers
1863
- include Google::Apis::Core::Hashable
1864
-
1865
- # Pending is a list of initializers that must execute in order before this
1866
- # object is visible. When the last pending initializer is removed, and no
1867
- # failing result is set, the initializers struct will be set to nil and the
1868
- # object is considered as initialized and visible to all clients.
1869
- # +patchMergeKey=name
1870
- # +patchStrategy=merge
1871
- # Corresponds to the JSON property `pending`
1872
- # @return [Array<Google::Apis::RunV1alpha1::Initializer>]
1873
- attr_accessor :pending
1874
-
1875
- def initialize(**args)
1876
- update!(**args)
1877
- end
1878
-
1879
- # Update properties of this object
1880
- def update!(**args)
1881
- @pending = args[:pending] if args.key?(:pending)
1882
- end
1883
- end
1884
-
1885
2155
  # IntOrString is a type that can hold an int32 or a string. When used in
1886
2156
  # JSON or YAML marshalling and unmarshalling, it produces or consumes the
1887
2157
  # inner type. This allows you to have, for example, a JSON field that can
@@ -1966,10 +2236,78 @@ module Google
1966
2236
  # @return [Google::Apis::RunV1alpha1::Handler]
1967
2237
  attr_accessor :post_start
1968
2238
 
1969
- # Handler defines a specific action that should be taken
1970
- # Corresponds to the JSON property `preStop`
1971
- # @return [Google::Apis::RunV1alpha1::Handler]
1972
- attr_accessor :pre_stop
2239
+ # Handler defines a specific action that should be taken
2240
+ # Corresponds to the JSON property `preStop`
2241
+ # @return [Google::Apis::RunV1alpha1::Handler]
2242
+ attr_accessor :pre_stop
2243
+
2244
+ def initialize(**args)
2245
+ update!(**args)
2246
+ end
2247
+
2248
+ # Update properties of this object
2249
+ def update!(**args)
2250
+ @post_start = args[:post_start] if args.key?(:post_start)
2251
+ @pre_stop = args[:pre_stop] if args.key?(:pre_stop)
2252
+ end
2253
+ end
2254
+
2255
+ # A list of Authorized Domains.
2256
+ class ListAuthorizedDomainsResponse
2257
+ include Google::Apis::Core::Hashable
2258
+
2259
+ # The authorized domains belonging to the user.
2260
+ # Corresponds to the JSON property `domains`
2261
+ # @return [Array<Google::Apis::RunV1alpha1::AuthorizedDomain>]
2262
+ attr_accessor :domains
2263
+
2264
+ # Continuation token for fetching the next page of results.
2265
+ # Corresponds to the JSON property `nextPageToken`
2266
+ # @return [String]
2267
+ attr_accessor :next_page_token
2268
+
2269
+ def initialize(**args)
2270
+ update!(**args)
2271
+ end
2272
+
2273
+ # Update properties of this object
2274
+ def update!(**args)
2275
+ @domains = args[:domains] if args.key?(:domains)
2276
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2277
+ end
2278
+ end
2279
+
2280
+ # ListCloudAuditLogsSourcesResponse is a list of CloudAuditLogsSource
2281
+ # resources.
2282
+ class ListCloudAuditLogsSourcesResponse
2283
+ include Google::Apis::Core::Hashable
2284
+
2285
+ # The API version for this call such as "events.cloud.google.com/v1alpha1".
2286
+ # Corresponds to the JSON property `apiVersion`
2287
+ # @return [String]
2288
+ attr_accessor :api_version
2289
+
2290
+ # List of CloudAuditLogsSources.
2291
+ # Corresponds to the JSON property `items`
2292
+ # @return [Array<Google::Apis::RunV1alpha1::CloudAuditLogsSource>]
2293
+ attr_accessor :items
2294
+
2295
+ # The kind of this resource, in this case "CloudAuditLogsSourceList".
2296
+ # Corresponds to the JSON property `kind`
2297
+ # @return [String]
2298
+ attr_accessor :kind
2299
+
2300
+ # ListMeta describes metadata that synthetic resources must have, including
2301
+ # lists and various status objects. A resource may have only one of
2302
+ # `ObjectMeta, ListMeta`.
2303
+ # Corresponds to the JSON property `metadata`
2304
+ # @return [Google::Apis::RunV1alpha1::ListMeta]
2305
+ attr_accessor :metadata
2306
+
2307
+ # Locations that could not be reached.
2308
+ # Corresponds to the JSON property `unreachable`
2309
+ # @return [Array<String>]
2310
+ attr_accessor :unreachable
1973
2311
 
1974
2312
  def initialize(**args)
1975
2313
  update!(**args)
@@ -1977,24 +2315,44 @@ module Google
1977
2315
 
1978
2316
  # Update properties of this object
1979
2317
  def update!(**args)
1980
- @post_start = args[:post_start] if args.key?(:post_start)
1981
- @pre_stop = args[:pre_stop] if args.key?(:pre_stop)
2318
+ @api_version = args[:api_version] if args.key?(:api_version)
2319
+ @items = args[:items] if args.key?(:items)
2320
+ @kind = args[:kind] if args.key?(:kind)
2321
+ @metadata = args[:metadata] if args.key?(:metadata)
2322
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1982
2323
  end
1983
2324
  end
1984
2325
 
1985
- # A list of Authorized Domains.
1986
- class ListAuthorizedDomainsResponse
2326
+ # ListCloudPubSubSourcesResponse is a list of CloudPubSubSource resources.
2327
+ class ListCloudPubSubSourcesResponse
1987
2328
  include Google::Apis::Core::Hashable
1988
2329
 
1989
- # The authorized domains belonging to the user.
1990
- # Corresponds to the JSON property `domains`
1991
- # @return [Array<Google::Apis::RunV1alpha1::AuthorizedDomain>]
1992
- attr_accessor :domains
2330
+ # The API version for this call such as "events.cloud.google.com/v1alpha1".
2331
+ # Corresponds to the JSON property `apiVersion`
2332
+ # @return [String]
2333
+ attr_accessor :api_version
1993
2334
 
1994
- # Continuation token for fetching the next page of results.
1995
- # Corresponds to the JSON property `nextPageToken`
2335
+ # List of CloudPubSubSources.
2336
+ # Corresponds to the JSON property `items`
2337
+ # @return [Array<Google::Apis::RunV1alpha1::CloudPubSubSource>]
2338
+ attr_accessor :items
2339
+
2340
+ # The kind of this resource, in this case "CloudPubSubSourceList".
2341
+ # Corresponds to the JSON property `kind`
1996
2342
  # @return [String]
1997
- attr_accessor :next_page_token
2343
+ attr_accessor :kind
2344
+
2345
+ # ListMeta describes metadata that synthetic resources must have, including
2346
+ # lists and various status objects. A resource may have only one of
2347
+ # `ObjectMeta, ListMeta`.
2348
+ # Corresponds to the JSON property `metadata`
2349
+ # @return [Google::Apis::RunV1alpha1::ListMeta]
2350
+ attr_accessor :metadata
2351
+
2352
+ # Locations that could not be reached.
2353
+ # Corresponds to the JSON property `unreachable`
2354
+ # @return [Array<String>]
2355
+ attr_accessor :unreachable
1998
2356
 
1999
2357
  def initialize(**args)
2000
2358
  update!(**args)
@@ -2002,14 +2360,17 @@ module Google
2002
2360
 
2003
2361
  # Update properties of this object
2004
2362
  def update!(**args)
2005
- @domains = args[:domains] if args.key?(:domains)
2006
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2363
+ @api_version = args[:api_version] if args.key?(:api_version)
2364
+ @items = args[:items] if args.key?(:items)
2365
+ @kind = args[:kind] if args.key?(:kind)
2366
+ @metadata = args[:metadata] if args.key?(:metadata)
2367
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
2007
2368
  end
2008
2369
  end
2009
2370
 
2010
- # ListCloudAuditLogsSourcesResponse is a list of CloudAuditLogsSource
2371
+ # ListCloudSchedulerSourcesResponse is a list of CloudSchedulerSource
2011
2372
  # resources.
2012
- class ListCloudAuditLogsSourcesResponse
2373
+ class ListCloudSchedulerSourcesResponse
2013
2374
  include Google::Apis::Core::Hashable
2014
2375
 
2015
2376
  # The API version for this call such as "events.cloud.google.com/v1alpha1".
@@ -2017,12 +2378,12 @@ module Google
2017
2378
  # @return [String]
2018
2379
  attr_accessor :api_version
2019
2380
 
2020
- # List of CloudAuditLogsSources.
2381
+ # List of CloudSchedulerSources.
2021
2382
  # Corresponds to the JSON property `items`
2022
- # @return [Array<Google::Apis::RunV1alpha1::CloudAuditLogsSource>]
2383
+ # @return [Array<Google::Apis::RunV1alpha1::CloudSchedulerSource>]
2023
2384
  attr_accessor :items
2024
2385
 
2025
- # The kind of this resource, in this case "CloudAuditLogsSourceList".
2386
+ # The kind of this resource, in this case "CloudSchedulerSourceList".
2026
2387
  # Corresponds to the JSON property `kind`
2027
2388
  # @return [String]
2028
2389
  attr_accessor :kind
@@ -2053,8 +2414,8 @@ module Google
2053
2414
  end
2054
2415
  end
2055
2416
 
2056
- # ListCloudPubSubSourcesResponse is a list of CloudPubSubSource resources.
2057
- class ListCloudPubSubSourcesResponse
2417
+ # ListCloudStorageSourcesResponse is a list of CloudStorageSource resources.
2418
+ class ListCloudStorageSourcesResponse
2058
2419
  include Google::Apis::Core::Hashable
2059
2420
 
2060
2421
  # The API version for this call such as "events.cloud.google.com/v1alpha1".
@@ -2062,12 +2423,12 @@ module Google
2062
2423
  # @return [String]
2063
2424
  attr_accessor :api_version
2064
2425
 
2065
- # List of CloudPubSubSources.
2426
+ # List of CloudStorageSources.
2066
2427
  # Corresponds to the JSON property `items`
2067
- # @return [Array<Google::Apis::RunV1alpha1::CloudPubSubSource>]
2428
+ # @return [Array<Google::Apis::RunV1alpha1::CloudStorageSource>]
2068
2429
  attr_accessor :items
2069
2430
 
2070
- # The kind of this resource, in this case "CloudPubSubSourceList".
2431
+ # The kind of this resource, in this case "CloudStorageSourceList".
2071
2432
  # Corresponds to the JSON property `kind`
2072
2433
  # @return [String]
2073
2434
  attr_accessor :kind
@@ -2399,51 +2760,6 @@ module Google
2399
2760
  end
2400
2761
  end
2401
2762
 
2402
- # ListStoragesResponse is a list of Storage resources.
2403
- class ListStoragesResponse
2404
- include Google::Apis::Core::Hashable
2405
-
2406
- # The API version for this call such as "events.cloud.google.com/v1alpha1".
2407
- # Corresponds to the JSON property `apiVersion`
2408
- # @return [String]
2409
- attr_accessor :api_version
2410
-
2411
- # List of Storages.
2412
- # Corresponds to the JSON property `items`
2413
- # @return [Array<Google::Apis::RunV1alpha1::Storage>]
2414
- attr_accessor :items
2415
-
2416
- # The kind of this resource, in this case "StorageList".
2417
- # Corresponds to the JSON property `kind`
2418
- # @return [String]
2419
- attr_accessor :kind
2420
-
2421
- # ListMeta describes metadata that synthetic resources must have, including
2422
- # lists and various status objects. A resource may have only one of
2423
- # `ObjectMeta, ListMeta`.
2424
- # Corresponds to the JSON property `metadata`
2425
- # @return [Google::Apis::RunV1alpha1::ListMeta]
2426
- attr_accessor :metadata
2427
-
2428
- # Locations that could not be reached.
2429
- # Corresponds to the JSON property `unreachable`
2430
- # @return [Array<String>]
2431
- attr_accessor :unreachable
2432
-
2433
- def initialize(**args)
2434
- update!(**args)
2435
- end
2436
-
2437
- # Update properties of this object
2438
- def update!(**args)
2439
- @api_version = args[:api_version] if args.key?(:api_version)
2440
- @items = args[:items] if args.key?(:items)
2441
- @kind = args[:kind] if args.key?(:kind)
2442
- @metadata = args[:metadata] if args.key?(:metadata)
2443
- @unreachable = args[:unreachable] if args.key?(:unreachable)
2444
- end
2445
- end
2446
-
2447
2763
  # ListTriggersResponse is a list of Trigger resources.
2448
2764
  class ListTriggersResponse
2449
2765
  include Google::Apis::Core::Hashable
@@ -2668,11 +2984,6 @@ module Google
2668
2984
  # @return [Fixnum]
2669
2985
  attr_accessor :generation
2670
2986
 
2671
- # Initializers tracks the progress of initialization.
2672
- # Corresponds to the JSON property `initializers`
2673
- # @return [Google::Apis::RunV1alpha1::Initializers]
2674
- attr_accessor :initializers
2675
-
2676
2987
  # Map of string keys and values that can be used to organize and categorize
2677
2988
  # (scope and select) objects. May match selectors of replication controllers
2678
2989
  # and routes.
@@ -2758,7 +3069,6 @@ module Google
2758
3069
  @finalizers = args[:finalizers] if args.key?(:finalizers)
2759
3070
  @generate_name = args[:generate_name] if args.key?(:generate_name)
2760
3071
  @generation = args[:generation] if args.key?(:generation)
2761
- @initializers = args[:initializers] if args.key?(:initializers)
2762
3072
  @labels = args[:labels] if args.key?(:labels)
2763
3073
  @name = args[:name] if args.key?(:name)
2764
3074
  @namespace = args[:namespace] if args.key?(:namespace)
@@ -4439,165 +4749,6 @@ module Google
4439
4749
  end
4440
4750
  end
4441
4751
 
4442
- #
4443
- class Storage
4444
- include Google::Apis::Core::Hashable
4445
-
4446
- # The API version for this call such as "events.cloud.google.com/v1alpha1".
4447
- # Corresponds to the JSON property `apiVersion`
4448
- # @return [String]
4449
- attr_accessor :api_version
4450
-
4451
- # The kind of resource, in this case "Storage".
4452
- # Corresponds to the JSON property `kind`
4453
- # @return [String]
4454
- attr_accessor :kind
4455
-
4456
- # ObjectMeta is metadata that all persisted resources must have, which includes
4457
- # all objects users must create.
4458
- # Corresponds to the JSON property `metadata`
4459
- # @return [Google::Apis::RunV1alpha1::ObjectMeta]
4460
- attr_accessor :metadata
4461
-
4462
- # The desired state of the Storage.
4463
- # Corresponds to the JSON property `spec`
4464
- # @return [Google::Apis::RunV1alpha1::StorageSpec]
4465
- attr_accessor :spec
4466
-
4467
- # StorageStatus represents the current state of a Storage.
4468
- # Corresponds to the JSON property `status`
4469
- # @return [Google::Apis::RunV1alpha1::StorageStatus]
4470
- attr_accessor :status
4471
-
4472
- def initialize(**args)
4473
- update!(**args)
4474
- end
4475
-
4476
- # Update properties of this object
4477
- def update!(**args)
4478
- @api_version = args[:api_version] if args.key?(:api_version)
4479
- @kind = args[:kind] if args.key?(:kind)
4480
- @metadata = args[:metadata] if args.key?(:metadata)
4481
- @spec = args[:spec] if args.key?(:spec)
4482
- @status = args[:status] if args.key?(:status)
4483
- end
4484
- end
4485
-
4486
- # The desired state of the Storage.
4487
- class StorageSpec
4488
- include Google::Apis::Core::Hashable
4489
-
4490
- # Bucket to subscribe to.
4491
- # Corresponds to the JSON property `bucket`
4492
- # @return [String]
4493
- attr_accessor :bucket
4494
-
4495
- # CloudEventOverrides defines arguments for a Source that control the output
4496
- # format of the CloudEvents produced by the Source.
4497
- # Corresponds to the JSON property `ceOverrides`
4498
- # @return [Google::Apis::RunV1alpha1::CloudEventOverrides]
4499
- attr_accessor :ce_overrides
4500
-
4501
- # EventTypes to subscribe to. If unspecified, then subscribe to all events.
4502
- # +optional
4503
- # Corresponds to the JSON property `eventTypes`
4504
- # @return [Array<String>]
4505
- attr_accessor :event_types
4506
-
4507
- # ObjectNamePrefix limits the notifications to objects with this prefix
4508
- # +optional
4509
- # Corresponds to the JSON property `objectNamePrefix`
4510
- # @return [String]
4511
- attr_accessor :object_name_prefix
4512
-
4513
- # PayloadFormat specifies the contents of the message payload.
4514
- # See https://cloud.google.com/storage/docs/pubsub-notifications#payload.
4515
- # +optional
4516
- # Corresponds to the JSON property `payloadFormat`
4517
- # @return [String]
4518
- attr_accessor :payload_format
4519
-
4520
- # Project is the ID of the Google Cloud Project that the PubSub Topic exists
4521
- # in. If omitted, defaults to same as the cluster. +optional
4522
- # Corresponds to the JSON property `project`
4523
- # @return [String]
4524
- attr_accessor :project
4525
-
4526
- # Cloud Run fully managed: not supported
4527
- # Cloud Run on GKE: supported
4528
- # SecretKeySelector selects a key of a Secret.
4529
- # Corresponds to the JSON property `pubsubSecret`
4530
- # @return [Google::Apis::RunV1alpha1::SecretKeySelector]
4531
- attr_accessor :pubsub_secret
4532
-
4533
- # Cloud Run fully managed: not supported
4534
- # Cloud Run on GKE: supported
4535
- # SecretKeySelector selects a key of a Secret.
4536
- # Corresponds to the JSON property `secret`
4537
- # @return [Google::Apis::RunV1alpha1::SecretKeySelector]
4538
- attr_accessor :secret
4539
-
4540
- # ServiceAccountName holds the name of the Kubernetes service account
4541
- # as which the underlying K8s resources should be run. If unspecified
4542
- # this will default to the "default" service account for the namespace
4543
- # in which the GCS exists.
4544
- # +optional
4545
- # Corresponds to the JSON property `serviceAccountName`
4546
- # @return [String]
4547
- attr_accessor :service_account_name
4548
-
4549
- # Sink is a reference to an object that will resolve to a domain name or a
4550
- # URI directly to use as the sink.
4551
- # Corresponds to the JSON property `sink`
4552
- # @return [Google::Apis::RunV1alpha1::Destination]
4553
- attr_accessor :sink
4554
-
4555
- def initialize(**args)
4556
- update!(**args)
4557
- end
4558
-
4559
- # Update properties of this object
4560
- def update!(**args)
4561
- @bucket = args[:bucket] if args.key?(:bucket)
4562
- @ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides)
4563
- @event_types = args[:event_types] if args.key?(:event_types)
4564
- @object_name_prefix = args[:object_name_prefix] if args.key?(:object_name_prefix)
4565
- @payload_format = args[:payload_format] if args.key?(:payload_format)
4566
- @project = args[:project] if args.key?(:project)
4567
- @pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret)
4568
- @secret = args[:secret] if args.key?(:secret)
4569
- @service_account_name = args[:service_account_name] if args.key?(:service_account_name)
4570
- @sink = args[:sink] if args.key?(:sink)
4571
- end
4572
- end
4573
-
4574
- # StorageStatus represents the current state of a Storage.
4575
- class StorageStatus
4576
- include Google::Apis::Core::Hashable
4577
-
4578
- # Array of observed StorageConditions, indicating the current state
4579
- # of the Storage.
4580
- # Corresponds to the JSON property `conditions`
4581
- # @return [Array<Google::Apis::RunV1alpha1::Condition>]
4582
- attr_accessor :conditions
4583
-
4584
- # ObservedGeneration is the 'Generation' of the Storage that
4585
- # was last processed by the controller.
4586
- # Corresponds to the JSON property `observedGeneration`
4587
- # @return [Fixnum]
4588
- attr_accessor :observed_generation
4589
-
4590
- def initialize(**args)
4591
- update!(**args)
4592
- end
4593
-
4594
- # Update properties of this object
4595
- def update!(**args)
4596
- @conditions = args[:conditions] if args.key?(:conditions)
4597
- @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
4598
- end
4599
- end
4600
-
4601
4752
  # TCPSocketAction describes an action based on opening a socket
4602
4753
  class TcpSocketAction
4603
4754
  include Google::Apis::Core::Hashable