google-api-client 0.39.4 → 0.39.5

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 +65 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
  5. data/generated/google/apis/apigee_v1.rb +1 -1
  6. data/generated/google/apis/apigee_v1/classes.rb +7 -0
  7. data/generated/google/apis/apigee_v1/representations.rb +1 -0
  8. data/generated/google/apis/apigee_v1/service.rb +9 -1
  9. data/generated/google/apis/artifactregistry_v1beta1.rb +38 -0
  10. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +1010 -0
  11. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +380 -0
  12. data/generated/google/apis/artifactregistry_v1beta1/service.rb +957 -0
  13. data/generated/google/apis/bigquery_v2.rb +1 -1
  14. data/generated/google/apis/bigquery_v2/classes.rb +12 -1
  15. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  16. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  17. data/generated/google/apis/bigqueryreservation_v1/service.rb +8 -8
  18. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  19. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +18 -14
  20. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +93 -68
  21. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  22. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +21 -0
  23. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +6 -0
  24. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  25. data/generated/google/apis/binaryauthorization_v1/classes.rb +4 -1
  26. data/generated/google/apis/calendar_v3.rb +1 -1
  27. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  28. data/generated/google/apis/cloudasset_v1.rb +1 -1
  29. data/generated/google/apis/cloudasset_v1/classes.rb +371 -27
  30. data/generated/google/apis/cloudasset_v1/representations.rb +97 -0
  31. data/generated/google/apis/cloudasset_v1/service.rb +186 -8
  32. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  33. data/generated/google/apis/cloudasset_v1beta1/classes.rb +23 -10
  34. data/generated/google/apis/cloudasset_v1beta1/service.rb +12 -3
  35. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  36. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +42 -10
  37. data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +2 -0
  38. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +1 -0
  41. data/generated/google/apis/cloudbuild_v1/service.rb +121 -0
  42. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +142 -0
  44. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +60 -0
  45. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +121 -0
  46. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  47. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +142 -0
  48. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +60 -0
  49. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +121 -0
  50. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  51. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +6 -0
  52. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +1 -0
  53. data/generated/google/apis/container_v1beta1.rb +1 -1
  54. data/generated/google/apis/container_v1beta1/classes.rb +35 -0
  55. data/generated/google/apis/container_v1beta1/representations.rb +17 -0
  56. data/generated/google/apis/content_v2_1.rb +1 -1
  57. data/generated/google/apis/content_v2_1/classes.rb +6 -0
  58. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  59. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  60. data/generated/google/apis/dataproc_v1beta2/classes.rb +26 -12
  61. data/generated/google/apis/dataproc_v1beta2/service.rb +35 -21
  62. data/generated/google/apis/datastore_v1.rb +1 -1
  63. data/generated/google/apis/datastore_v1/classes.rb +1 -1
  64. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  65. data/generated/google/apis/datastore_v1beta3/classes.rb +1 -1
  66. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  67. data/generated/google/apis/deploymentmanager_alpha/classes.rb +362 -176
  68. data/generated/google/apis/deploymentmanager_alpha/representations.rb +22 -4
  69. data/generated/google/apis/deploymentmanager_alpha/service.rb +198 -311
  70. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  71. data/generated/google/apis/deploymentmanager_v2/classes.rb +295 -146
  72. data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -1
  73. data/generated/google/apis/deploymentmanager_v2/service.rb +101 -99
  74. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  75. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +350 -170
  76. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +18 -1
  77. data/generated/google/apis/deploymentmanager_v2beta/service.rb +154 -152
  78. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  79. data/generated/google/apis/dfareporting_v3_3/classes.rb +2 -2
  80. data/generated/google/apis/dfareporting_v3_3/service.rb +2 -2
  81. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  82. data/generated/google/apis/dfareporting_v3_4/classes.rb +2 -2
  83. data/generated/google/apis/dfareporting_v3_4/service.rb +2 -2
  84. data/generated/google/apis/dialogflow_v2.rb +1 -1
  85. data/generated/google/apis/dialogflow_v2/classes.rb +3 -0
  86. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  87. data/generated/google/apis/dialogflow_v2beta1/classes.rb +3 -0
  88. data/generated/google/apis/dialogflow_v2beta1/service.rb +2 -2
  89. data/generated/google/apis/dialogflow_v3alpha1.rb +38 -0
  90. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +5022 -0
  91. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +2057 -0
  92. data/generated/google/apis/dialogflow_v3alpha1/service.rb +296 -0
  93. data/generated/google/apis/displayvideo_v1.rb +1 -1
  94. data/generated/google/apis/displayvideo_v1/service.rb +7 -2
  95. data/generated/google/apis/dlp_v2.rb +1 -1
  96. data/generated/google/apis/dlp_v2/classes.rb +9 -21
  97. data/generated/google/apis/dlp_v2/service.rb +79 -142
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v1/classes.rb +160 -261
  100. data/generated/google/apis/dns_v1/representations.rb +17 -0
  101. data/generated/google/apis/dns_v1/service.rb +21 -141
  102. data/generated/google/apis/dns_v1beta2.rb +1 -1
  103. data/generated/google/apis/dns_v1beta2/classes.rb +189 -273
  104. data/generated/google/apis/dns_v1beta2/representations.rb +32 -0
  105. data/generated/google/apis/dns_v1beta2/service.rb +21 -141
  106. data/generated/google/apis/dns_v2beta1.rb +1 -1
  107. data/generated/google/apis/dns_v2beta1/classes.rb +160 -261
  108. data/generated/google/apis/dns_v2beta1/representations.rb +17 -0
  109. data/generated/google/apis/dns_v2beta1/service.rb +21 -141
  110. data/generated/google/apis/file_v1.rb +1 -1
  111. data/generated/google/apis/file_v1/classes.rb +31 -0
  112. data/generated/google/apis/file_v1/representations.rb +15 -0
  113. data/generated/google/apis/file_v1beta1.rb +1 -1
  114. data/generated/google/apis/file_v1beta1/classes.rb +31 -0
  115. data/generated/google/apis/file_v1beta1/representations.rb +15 -0
  116. data/generated/google/apis/{pagespeedonline_v1.rb → firebaseml_v1.rb} +11 -9
  117. data/generated/google/apis/firebaseml_v1/classes.rb +213 -0
  118. data/generated/google/apis/firebaseml_v1/representations.rb +112 -0
  119. data/generated/google/apis/firebaseml_v1/service.rb +181 -0
  120. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  121. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -1
  122. data/generated/google/apis/games_management_v1management.rb +1 -1
  123. data/generated/google/apis/games_management_v1management/service.rb +1 -1
  124. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  125. data/generated/google/apis/iamcredentials_v1/classes.rb +26 -2
  126. data/generated/google/apis/networkmanagement_v1.rb +35 -0
  127. data/generated/google/apis/networkmanagement_v1/classes.rb +1868 -0
  128. data/generated/google/apis/networkmanagement_v1/representations.rb +661 -0
  129. data/generated/google/apis/networkmanagement_v1/service.rb +667 -0
  130. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  131. data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
  132. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
  133. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  134. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
  135. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
  136. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  137. data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
  138. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
  139. data/generated/google/apis/securitycenter_v1.rb +1 -1
  140. data/generated/google/apis/securitycenter_v1/classes.rb +27 -12
  141. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  142. data/generated/google/apis/securitycenter_v1beta1/classes.rb +27 -12
  143. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  144. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +27 -12
  145. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  146. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -31
  147. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -1
  148. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  149. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +0 -31
  150. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -1
  151. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  152. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -31
  153. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  154. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  155. data/generated/google/apis/servicenetworking_v1/classes.rb +379 -31
  156. data/generated/google/apis/servicenetworking_v1/representations.rb +209 -1
  157. data/generated/google/apis/servicenetworking_v1/service.rb +187 -0
  158. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  159. data/generated/google/apis/servicenetworking_v1beta/classes.rb +188 -31
  160. data/generated/google/apis/servicenetworking_v1beta/representations.rb +130 -1
  161. data/generated/google/apis/serviceusage_v1.rb +1 -1
  162. data/generated/google/apis/serviceusage_v1/classes.rb +0 -31
  163. data/generated/google/apis/serviceusage_v1/representations.rb +0 -1
  164. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  165. data/generated/google/apis/serviceusage_v1beta1/classes.rb +0 -31
  166. data/generated/google/apis/serviceusage_v1beta1/representations.rb +0 -1
  167. data/generated/google/apis/tasks_v1.rb +3 -3
  168. data/generated/google/apis/tasks_v1/classes.rb +26 -25
  169. data/generated/google/apis/tasks_v1/representations.rb +4 -8
  170. data/generated/google/apis/tasks_v1/service.rb +79 -128
  171. data/generated/google/apis/translate_v3.rb +1 -1
  172. data/generated/google/apis/verifiedaccess_v1.rb +3 -3
  173. data/generated/google/apis/verifiedaccess_v1/service.rb +2 -2
  174. data/generated/google/apis/websecurityscanner_v1.rb +2 -2
  175. data/generated/google/apis/websecurityscanner_v1/classes.rb +7 -5
  176. data/generated/google/apis/websecurityscanner_v1/service.rb +1 -1
  177. data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
  178. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +5 -4
  179. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  180. data/generated/google/apis/websecurityscanner_v1beta.rb +2 -2
  181. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +9 -7
  182. data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
  183. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  184. data/generated/google/apis/youtube_v3.rb +5 -5
  185. data/generated/google/apis/youtube_v3/classes.rb +1260 -1244
  186. data/generated/google/apis/youtube_v3/representations.rb +64 -192
  187. data/generated/google/apis/youtube_v3/service.rb +1833 -2125
  188. data/lib/google/apis/version.rb +1 -1
  189. metadata +19 -7
  190. data/generated/google/apis/pagespeedonline_v1/classes.rb +0 -542
  191. data/generated/google/apis/pagespeedonline_v1/representations.rb +0 -258
  192. data/generated/google/apis/pagespeedonline_v1/service.rb +0 -116
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
27
27
  module BillingbudgetsV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20200315'
29
+ REVISION = '20200516'
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'
@@ -190,6 +190,15 @@ module Google
190
190
  # @return [String]
191
191
  attr_accessor :credit_types_treatment
192
192
 
193
+ # Optional. A single label and value pair specifying that usage from only this
194
+ # set of
195
+ # labeled resources should be included in the budget. Multiple entries or
196
+ # multiple values per entry are not allowed. If omitted, the report will
197
+ # include all labeled and unlabeled usage.
198
+ # Corresponds to the JSON property `labels`
199
+ # @return [Hash<String,Array<Object>>]
200
+ attr_accessor :labels
201
+
193
202
  # Optional. A set of projects of the form `projects/`project``,
194
203
  # specifying that usage from only this set of projects should be
195
204
  # included in the budget. If omitted, the report will include all usage for
@@ -209,6 +218,16 @@ module Google
209
218
  # @return [Array<String>]
210
219
  attr_accessor :services
211
220
 
221
+ # Optional. A set of subaccounts of the form `billingAccounts/`account_id``,
222
+ # specifying
223
+ # that usage from only this set of subaccounts should be included in the
224
+ # budget. If a subaccount is set to the name of the master account, usage
225
+ # from the master account will be included. If omitted, the report will
226
+ # include usage from the master account and all subaccounts, if they exist.
227
+ # Corresponds to the JSON property `subaccounts`
228
+ # @return [Array<String>]
229
+ attr_accessor :subaccounts
230
+
212
231
  def initialize(**args)
213
232
  update!(**args)
214
233
  end
@@ -216,8 +235,10 @@ module Google
216
235
  # Update properties of this object
217
236
  def update!(**args)
218
237
  @credit_types_treatment = args[:credit_types_treatment] if args.key?(:credit_types_treatment)
238
+ @labels = args[:labels] if args.key?(:labels)
219
239
  @projects = args[:projects] if args.key?(:projects)
220
240
  @services = args[:services] if args.key?(:services)
241
+ @subaccounts = args[:subaccounts] if args.key?(:subaccounts)
221
242
  end
222
243
  end
223
244
 
@@ -135,8 +135,14 @@ module Google
135
135
  # @private
136
136
  class Representation < Google::Apis::Core::JsonRepresentation
137
137
  property :credit_types_treatment, as: 'creditTypesTreatment'
138
+ hash :labels, as: 'labels', :class => Array do
139
+ include Representable::JSON::Collection
140
+ items
141
+ end
142
+
138
143
  collection :projects, as: 'projects'
139
144
  collection :services, as: 'services'
145
+ collection :subaccounts, as: 'subaccounts'
140
146
  end
141
147
  end
142
148
 
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/binary-authorization/
27
27
  module BinaryauthorizationV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200501'
29
+ REVISION = '20200515'
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'
@@ -540,7 +540,8 @@ module Google
540
540
  # @return [Array<Google::Apis::BinaryauthorizationV1::AdmissionWhitelistPattern>]
541
541
  attr_accessor :admission_whitelist_patterns
542
542
 
543
- # Optional. Per-cluster admission rules. Cluster spec format:
543
+ # Optional. LINT.IfChange(cluster_regex)
544
+ # Per-cluster admission rules. Cluster spec format:
544
545
  # `location.clusterId`. There can be at most one admission rule per cluster
545
546
  # spec.
546
547
  # A `location` is either a compute zone (e.g. us-central1-a) or a region
@@ -548,6 +549,8 @@ module Google
548
549
  # For `clusterId` syntax restrictions see
549
550
  # https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.
550
551
  # clusters.
552
+ # LINT.ThenChange(//depot/google3/cloud/console/web/binary_authorization/api/
553
+ # models/admission_rule_type.ts:cluster_regex)
551
554
  # Corresponds to the JSON property `clusterAdmissionRules`
552
555
  # @return [Hash<String,Google::Apis::BinaryauthorizationV1::AdmissionRule>]
553
556
  attr_accessor :cluster_admission_rules
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/calendar/firstapp
26
26
  module CalendarV3
27
27
  VERSION = 'V3'
28
- REVISION = '20200428'
28
+ REVISION = '20200517'
29
29
 
30
30
  # See, edit, share, and permanently delete all the calendars you can access using Google Calendar
31
31
  AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
@@ -821,7 +821,7 @@ module Google
821
821
  # - "eventHangout" for Hangouts for consumers (http://hangouts.google.com)
822
822
  # - "eventNamedHangout" for classic Hangouts for G Suite users (http://hangouts.
823
823
  # google.com)
824
- # - "hangoutsMeet" for Hangouts Meet (http://meet.google.com)
824
+ # - "hangoutsMeet" for Google Meet (http://meet.google.com)
825
825
  # - "addOn" for 3P conference providers
826
826
  # Corresponds to the JSON property `type`
827
827
  # @return [String]
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/asset-inventory/docs/quickstart
26
26
  module CloudassetV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200403'
28
+ REVISION = '20200515'
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'
@@ -54,12 +54,12 @@ module Google
54
54
  # with the closest ancestor in the hierarchy and ends at root. If the asset
55
55
  # is a project, folder, or organization, the ancestry path starts from the
56
56
  # asset itself.
57
- # For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
57
+ # Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
58
58
  # Corresponds to the JSON property `ancestors`
59
59
  # @return [Array<String>]
60
60
  attr_accessor :ancestors
61
61
 
62
- # The type of the asset. For example: "compute.googleapis.com/Disk"
62
+ # The type of the asset. Example: "compute.googleapis.com/Disk"
63
63
  # See [Supported asset
64
64
  # types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
65
65
  # for more information.
@@ -74,10 +74,13 @@ module Google
74
74
  # Google groups, and domains (such as G Suite). A `role` is a named list of
75
75
  # permissions; each `role` can be an IAM predefined role or a user-created
76
76
  # custom role.
77
- # Optionally, a `binding` can specify a `condition`, which is a logical
78
- # expression that allows access to a resource only if the expression evaluates
79
- # to `true`. A condition can add constraints based on attributes of the
80
- # request, the resource, or both.
77
+ # For some types of Google Cloud resources, a `binding` can also specify a
78
+ # `condition`, which is a logical expression that allows access to a resource
79
+ # only if the expression evaluates to `true`. A condition can add constraints
80
+ # based on attributes of the request, the resource, or both. To learn which
81
+ # resources support conditions in their IAM policies, see the
82
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
83
+ # policies).
81
84
  # **JSON example:**
82
85
  # `
83
86
  # "bindings": [
@@ -92,7 +95,9 @@ module Google
92
95
  # `,
93
96
  # `
94
97
  # "role": "roles/resourcemanager.organizationViewer",
95
- # "members": ["user:eve@example.com"],
98
+ # "members": [
99
+ # "user:eve@example.com"
100
+ # ],
96
101
  # "condition": `
97
102
  # "title": "expirable access",
98
103
  # "description": "Does not grant access after Sep 2020",
@@ -127,7 +132,7 @@ module Google
127
132
  # @return [Google::Apis::CloudassetV1::Policy]
128
133
  attr_accessor :iam_policy
129
134
 
130
- # The full name of the asset. For example:
135
+ # The full name of the asset. Example:
131
136
  # "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
132
137
  # instance1"
133
138
  # See [Resource
@@ -490,11 +495,36 @@ module Google
490
495
  end
491
496
  end
492
497
 
498
+ # Explanation about the IAM policy search result.
499
+ class Explanation
500
+ include Google::Apis::Core::Hashable
501
+
502
+ # The map from roles to their included permissions that match the
503
+ # permission query (i.e., a query containing `policy.role.permissions:`).
504
+ # Example: if query `policy.role.permissions : "compute.disk.get"`
505
+ # matches a policy binding that contains owner role, the
506
+ # matched_permissions will be `"roles/owner": ["compute.disk.get"]`. The
507
+ # roles can also be found in the returned `policy` bindings. Note that the
508
+ # map is populated only for requests with permission queries.
509
+ # Corresponds to the JSON property `matchedPermissions`
510
+ # @return [Hash<String,Google::Apis::CloudassetV1::Permissions>]
511
+ attr_accessor :matched_permissions
512
+
513
+ def initialize(**args)
514
+ update!(**args)
515
+ end
516
+
517
+ # Update properties of this object
518
+ def update!(**args)
519
+ @matched_permissions = args[:matched_permissions] if args.key?(:matched_permissions)
520
+ end
521
+ end
522
+
493
523
  # Export asset request.
494
524
  class ExportAssetsRequest
495
525
  include Google::Apis::Core::Hashable
496
526
 
497
- # A list of asset types of which to take a snapshot for. For example:
527
+ # A list of asset types of which to take a snapshot for. Example:
498
528
  # "compute.googleapis.com/Disk". If specified, only matching assets will be
499
529
  # returned. See [Introduction to Cloud Asset
500
530
  # Inventory](https://cloud.google.com/asset-inventory/docs/overview)
@@ -609,8 +639,8 @@ module Google
609
639
 
610
640
  # A list of the full names of the assets to receive updates. You must specify
611
641
  # either or both of asset_names and asset_types. Only asset updates matching
612
- # specified asset_names and asset_types are exported to the feed. For
613
- # example:
642
+ # specified asset_names or asset_types are exported to the feed.
643
+ # Example:
614
644
  # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
615
645
  # instance1`.
616
646
  # See [Resource
@@ -622,8 +652,8 @@ module Google
622
652
 
623
653
  # A list of types of the assets to receive updates. You must specify either
624
654
  # or both of asset_names and asset_types. Only asset updates matching
625
- # specified asset_names and asset_types are exported to the feed.
626
- # For example: `"compute.googleapis.com/Disk"`
655
+ # specified asset_names or asset_types are exported to the feed.
656
+ # Example: `"compute.googleapis.com/Disk"`
627
657
  # See [this
628
658
  # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
629
659
  # for a list of all supported asset types.
@@ -690,7 +720,7 @@ module Google
690
720
  include Google::Apis::Core::Hashable
691
721
 
692
722
  # The uri of the Cloud Storage object. It's the same uri that is used by
693
- # gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
723
+ # gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
694
724
  # Editing Object
695
725
  # Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
696
726
  # for more information.
@@ -698,10 +728,10 @@ module Google
698
728
  # @return [String]
699
729
  attr_accessor :uri
700
730
 
701
- # The uri prefix of all generated Cloud Storage objects. For example:
731
+ # The uri prefix of all generated Cloud Storage objects. Example:
702
732
  # "gs://bucket_name/object_name_prefix". Each object uri is in format:
703
733
  # "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
704
- # contains assets for that type. <shard number> starts from 0. For example:
734
+ # contains assets for that type. <shard number> starts from 0. Example:
705
735
  # "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is
706
736
  # the first shard of output objects containing all
707
737
  # compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be
@@ -1570,6 +1600,117 @@ module Google
1570
1600
  end
1571
1601
  end
1572
1602
 
1603
+ # A result of IAM Policy search, containing information of an IAM policy.
1604
+ class IamPolicySearchResult
1605
+ include Google::Apis::Core::Hashable
1606
+
1607
+ # Explanation about the IAM policy search result.
1608
+ # Corresponds to the JSON property `explanation`
1609
+ # @return [Google::Apis::CloudassetV1::Explanation]
1610
+ attr_accessor :explanation
1611
+
1612
+ # An Identity and Access Management (IAM) policy, which specifies access
1613
+ # controls for Google Cloud resources.
1614
+ # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1615
+ # `members` to a single `role`. Members can be user accounts, service accounts,
1616
+ # Google groups, and domains (such as G Suite). A `role` is a named list of
1617
+ # permissions; each `role` can be an IAM predefined role or a user-created
1618
+ # custom role.
1619
+ # For some types of Google Cloud resources, a `binding` can also specify a
1620
+ # `condition`, which is a logical expression that allows access to a resource
1621
+ # only if the expression evaluates to `true`. A condition can add constraints
1622
+ # based on attributes of the request, the resource, or both. To learn which
1623
+ # resources support conditions in their IAM policies, see the
1624
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
1625
+ # policies).
1626
+ # **JSON example:**
1627
+ # `
1628
+ # "bindings": [
1629
+ # `
1630
+ # "role": "roles/resourcemanager.organizationAdmin",
1631
+ # "members": [
1632
+ # "user:mike@example.com",
1633
+ # "group:admins@example.com",
1634
+ # "domain:google.com",
1635
+ # "serviceAccount:my-project-id@appspot.gserviceaccount.com"
1636
+ # ]
1637
+ # `,
1638
+ # `
1639
+ # "role": "roles/resourcemanager.organizationViewer",
1640
+ # "members": [
1641
+ # "user:eve@example.com"
1642
+ # ],
1643
+ # "condition": `
1644
+ # "title": "expirable access",
1645
+ # "description": "Does not grant access after Sep 2020",
1646
+ # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
1647
+ # ",
1648
+ # `
1649
+ # `
1650
+ # ],
1651
+ # "etag": "BwWWja0YfJA=",
1652
+ # "version": 3
1653
+ # `
1654
+ # **YAML example:**
1655
+ # bindings:
1656
+ # - members:
1657
+ # - user:mike@example.com
1658
+ # - group:admins@example.com
1659
+ # - domain:google.com
1660
+ # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1661
+ # role: roles/resourcemanager.organizationAdmin
1662
+ # - members:
1663
+ # - user:eve@example.com
1664
+ # role: roles/resourcemanager.organizationViewer
1665
+ # condition:
1666
+ # title: expirable access
1667
+ # description: Does not grant access after Sep 2020
1668
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
1669
+ # - etag: BwWWja0YfJA=
1670
+ # - version: 3
1671
+ # For a description of IAM and its features, see the
1672
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
1673
+ # Corresponds to the JSON property `policy`
1674
+ # @return [Google::Apis::CloudassetV1::Policy]
1675
+ attr_accessor :policy
1676
+
1677
+ # The project that the associated GCP resource belongs to, in the form of
1678
+ # projects/`PROJECT_NUMBER`. If an IAM policy is set on a resource (like VM
1679
+ # instance, Cloud Storage bucket), the project field will indicate the
1680
+ # project that contains the resource. If an IAM policy is set on a folder or
1681
+ # orgnization, the project field will be empty.
1682
+ # To search against the `project`:
1683
+ # * specify the `scope` field as this project in your search request.
1684
+ # Corresponds to the JSON property `project`
1685
+ # @return [String]
1686
+ attr_accessor :project
1687
+
1688
+ # The full resource name of the resource associated with this IAM policy.
1689
+ # Example:
1690
+ # "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
1691
+ # instance1".
1692
+ # See [Cloud Asset Inventory Resource Name
1693
+ # Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
1694
+ # for more information.
1695
+ # To search against the `resource`:
1696
+ # * use a field query. Example: `resource : "organizations/123"`
1697
+ # Corresponds to the JSON property `resource`
1698
+ # @return [String]
1699
+ attr_accessor :resource
1700
+
1701
+ def initialize(**args)
1702
+ update!(**args)
1703
+ end
1704
+
1705
+ # Update properties of this object
1706
+ def update!(**args)
1707
+ @explanation = args[:explanation] if args.key?(:explanation)
1708
+ @policy = args[:policy] if args.key?(:policy)
1709
+ @project = args[:project] if args.key?(:project)
1710
+ @resource = args[:resource] if args.key?(:resource)
1711
+ end
1712
+ end
1713
+
1573
1714
  #
1574
1715
  class ListFeedsResponse
1575
1716
  include Google::Apis::Core::Hashable
@@ -1678,6 +1819,25 @@ module Google
1678
1819
  end
1679
1820
  end
1680
1821
 
1822
+ # IAM permissions
1823
+ class Permissions
1824
+ include Google::Apis::Core::Hashable
1825
+
1826
+ # A list of permissions. A sample permission string: "compute.disk.get".
1827
+ # Corresponds to the JSON property `permissions`
1828
+ # @return [Array<String>]
1829
+ attr_accessor :permissions
1830
+
1831
+ def initialize(**args)
1832
+ update!(**args)
1833
+ end
1834
+
1835
+ # Update properties of this object
1836
+ def update!(**args)
1837
+ @permissions = args[:permissions] if args.key?(:permissions)
1838
+ end
1839
+ end
1840
+
1681
1841
  # An Identity and Access Management (IAM) policy, which specifies access
1682
1842
  # controls for Google Cloud resources.
1683
1843
  # A `Policy` is a collection of `bindings`. A `binding` binds one or more
@@ -1685,10 +1845,13 @@ module Google
1685
1845
  # Google groups, and domains (such as G Suite). A `role` is a named list of
1686
1846
  # permissions; each `role` can be an IAM predefined role or a user-created
1687
1847
  # custom role.
1688
- # Optionally, a `binding` can specify a `condition`, which is a logical
1689
- # expression that allows access to a resource only if the expression evaluates
1690
- # to `true`. A condition can add constraints based on attributes of the
1691
- # request, the resource, or both.
1848
+ # For some types of Google Cloud resources, a `binding` can also specify a
1849
+ # `condition`, which is a logical expression that allows access to a resource
1850
+ # only if the expression evaluates to `true`. A condition can add constraints
1851
+ # based on attributes of the request, the resource, or both. To learn which
1852
+ # resources support conditions in their IAM policies, see the
1853
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
1854
+ # policies).
1692
1855
  # **JSON example:**
1693
1856
  # `
1694
1857
  # "bindings": [
@@ -1703,7 +1866,9 @@ module Google
1703
1866
  # `,
1704
1867
  # `
1705
1868
  # "role": "roles/resourcemanager.organizationViewer",
1706
- # "members": ["user:eve@example.com"],
1869
+ # "members": [
1870
+ # "user:eve@example.com"
1871
+ # ],
1707
1872
  # "condition": `
1708
1873
  # "title": "expirable access",
1709
1874
  # "description": "Does not grant access after Sep 2020",
@@ -1781,6 +1946,9 @@ module Google
1781
1946
  # the conditions in the version `3` policy are lost.
1782
1947
  # If a policy does not include any conditions, operations on that policy may
1783
1948
  # specify any valid version or leave the field unset.
1949
+ # To learn which resources support conditions in their IAM policies, see the
1950
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
1951
+ # policies).
1784
1952
  # Corresponds to the JSON property `version`
1785
1953
  # @return [Fixnum]
1786
1954
  attr_accessor :version
@@ -1803,7 +1971,7 @@ module Google
1803
1971
  include Google::Apis::Core::Hashable
1804
1972
 
1805
1973
  # The name of the Pub/Sub topic to publish to.
1806
- # For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
1974
+ # Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
1807
1975
  # Corresponds to the JSON property `topic`
1808
1976
  # @return [String]
1809
1977
  attr_accessor :topic
@@ -1829,7 +1997,7 @@ module Google
1829
1997
  attr_accessor :data
1830
1998
 
1831
1999
  # The URL of the discovery document containing the resource's JSON schema.
1832
- # For example:
2000
+ # Example:
1833
2001
  # "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"
1834
2002
  # This value is unspecified for resources that do not have an API based on a
1835
2003
  # discovery document, such as Cloud Bigtable.
@@ -1837,7 +2005,7 @@ module Google
1837
2005
  # @return [String]
1838
2006
  attr_accessor :discovery_document_uri
1839
2007
 
1840
- # The JSON schema name listed in the discovery document. For example:
2008
+ # The JSON schema name listed in the discovery document. Example:
1841
2009
  # "Project"
1842
2010
  # This value is unspecified for resources that do not have an API based on a
1843
2011
  # discovery document, such as Cloud Bigtable.
@@ -1845,6 +2013,12 @@ module Google
1845
2013
  # @return [String]
1846
2014
  attr_accessor :discovery_name
1847
2015
 
2016
+ # The location of the resource in Google Cloud, such as its zone and region.
2017
+ # For more information, see https://cloud.google.com/about/locations/.
2018
+ # Corresponds to the JSON property `location`
2019
+ # @return [String]
2020
+ attr_accessor :location
2021
+
1848
2022
  # The full name of the immediate parent of this resource. See
1849
2023
  # [Resource
1850
2024
  # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
@@ -1852,7 +2026,7 @@ module Google
1852
2026
  # For Google Cloud assets, this value is the parent resource defined in the
1853
2027
  # [Cloud IAM policy
1854
2028
  # hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
1855
- # For example:
2029
+ # Example:
1856
2030
  # "//cloudresourcemanager.googleapis.com/projects/my_project_123"
1857
2031
  # For third-party assets, this field may be set differently.
1858
2032
  # Corresponds to the JSON property `parent`
@@ -1860,14 +2034,14 @@ module Google
1860
2034
  attr_accessor :parent
1861
2035
 
1862
2036
  # The REST URL for accessing the resource. An HTTP `GET` request using this
1863
- # URL returns the resource itself. For example:
2037
+ # URL returns the resource itself. Example:
1864
2038
  # "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123"
1865
2039
  # This value is unspecified for resources without a REST API.
1866
2040
  # Corresponds to the JSON property `resourceUrl`
1867
2041
  # @return [String]
1868
2042
  attr_accessor :resource_url
1869
2043
 
1870
- # The API version. For example: "v1"
2044
+ # The API version. Example: "v1"
1871
2045
  # Corresponds to the JSON property `version`
1872
2046
  # @return [String]
1873
2047
  attr_accessor :version
@@ -1881,12 +2055,182 @@ module Google
1881
2055
  @data = args[:data] if args.key?(:data)
1882
2056
  @discovery_document_uri = args[:discovery_document_uri] if args.key?(:discovery_document_uri)
1883
2057
  @discovery_name = args[:discovery_name] if args.key?(:discovery_name)
2058
+ @location = args[:location] if args.key?(:location)
1884
2059
  @parent = args[:parent] if args.key?(:parent)
1885
2060
  @resource_url = args[:resource_url] if args.key?(:resource_url)
1886
2061
  @version = args[:version] if args.key?(:version)
1887
2062
  end
1888
2063
  end
1889
2064
 
2065
+ # A result of Resource Search, containing information of a cloud resoure.
2066
+ class ResourceSearchResult
2067
+ include Google::Apis::Core::Hashable
2068
+
2069
+ # The additional attributes of this resource. The attributes may vary from
2070
+ # one resource type to another. Examples: "projectId" for Project,
2071
+ # "dnsName" for DNS ManagedZone.
2072
+ # To search against the `additional_attributes`:
2073
+ # * use a free text query to match the attributes values. Example: to search
2074
+ # additional_attributes = ` dnsName: "foobar" `, you can issue a query
2075
+ # `"foobar"`.
2076
+ # Corresponds to the JSON property `additionalAttributes`
2077
+ # @return [Hash<String,Object>]
2078
+ attr_accessor :additional_attributes
2079
+
2080
+ # The type of this resource. Example: "compute.googleapis.com/Disk".
2081
+ # To search against the `asset_type`:
2082
+ # * specify the `asset_type` field in your search request.
2083
+ # Corresponds to the JSON property `assetType`
2084
+ # @return [String]
2085
+ attr_accessor :asset_type
2086
+
2087
+ # One or more paragraphs of text description of this resource. Maximum length
2088
+ # could be up to 1M bytes.
2089
+ # To search against the `description`:
2090
+ # * use a field query. Example: `description : "*important instance*"`
2091
+ # * use a free text query. Example: `"*important instance*"`
2092
+ # Corresponds to the JSON property `description`
2093
+ # @return [String]
2094
+ attr_accessor :description
2095
+
2096
+ # The display name of this resource.
2097
+ # To search against the `display_name`:
2098
+ # * use a field query. Example: `displayName : "My Instance"`
2099
+ # * use a free text query. Example: `"My Instance"`
2100
+ # Corresponds to the JSON property `displayName`
2101
+ # @return [String]
2102
+ attr_accessor :display_name
2103
+
2104
+ # Labels associated with this resource. See [Labelling and grouping GCP
2105
+ # resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-
2106
+ # your-google-cloud-platform-resources)
2107
+ # for more information.
2108
+ # To search against the `labels`:
2109
+ # * use a field query, as following:
2110
+ # - query on any label's key or value. Example: `labels : "prod"`
2111
+ # - query by a given label. Example: `labels.env : "prod"`
2112
+ # - query by a given label'sexistence. Example: `labels.env : *`
2113
+ # * use a free text query. Example: `"prod"`
2114
+ # Corresponds to the JSON property `labels`
2115
+ # @return [Hash<String,String>]
2116
+ attr_accessor :labels
2117
+
2118
+ # Location can be "global", regional like "us-east1", or zonal like
2119
+ # "us-west1-b".
2120
+ # To search against the `location`:
2121
+ # * use a field query. Example: `location : "us-west*"`
2122
+ # * use a free text query. Example: `"us-west*"`
2123
+ # Corresponds to the JSON property `location`
2124
+ # @return [String]
2125
+ attr_accessor :location
2126
+
2127
+ # The full resource name of this resource. Example:
2128
+ # "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
2129
+ # instance1".
2130
+ # See [Cloud Asset Inventory Resource Name
2131
+ # Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
2132
+ # for more information.
2133
+ # To search against the `name`:
2134
+ # * use a field query. Example: `name : "instance1"`
2135
+ # * use a free text query. Example: `"instance1"`
2136
+ # Corresponds to the JSON property `name`
2137
+ # @return [String]
2138
+ attr_accessor :name
2139
+
2140
+ # Network tags associated with this resource. Like labels, network tags are a
2141
+ # type of annotations used to group GCP resources. See [Labelling GCP
2142
+ # resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-
2143
+ # your-google-cloud-platform-resources)
2144
+ # for more information.
2145
+ # To search against the `network_tags`:
2146
+ # * use a field query. Example: `networkTags : "internal"`
2147
+ # * use a free text query. Example: `"internal"`
2148
+ # Corresponds to the JSON property `networkTags`
2149
+ # @return [Array<String>]
2150
+ attr_accessor :network_tags
2151
+
2152
+ # The project that this resource belongs to, in the form of
2153
+ # projects/`PROJECT_NUMBER`.
2154
+ # To search against the `project`:
2155
+ # * specify the `scope` field as this project in your search request.
2156
+ # Corresponds to the JSON property `project`
2157
+ # @return [String]
2158
+ attr_accessor :project
2159
+
2160
+ def initialize(**args)
2161
+ update!(**args)
2162
+ end
2163
+
2164
+ # Update properties of this object
2165
+ def update!(**args)
2166
+ @additional_attributes = args[:additional_attributes] if args.key?(:additional_attributes)
2167
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
2168
+ @description = args[:description] if args.key?(:description)
2169
+ @display_name = args[:display_name] if args.key?(:display_name)
2170
+ @labels = args[:labels] if args.key?(:labels)
2171
+ @location = args[:location] if args.key?(:location)
2172
+ @name = args[:name] if args.key?(:name)
2173
+ @network_tags = args[:network_tags] if args.key?(:network_tags)
2174
+ @project = args[:project] if args.key?(:project)
2175
+ end
2176
+ end
2177
+
2178
+ # Search all IAM policies response.
2179
+ class SearchAllIamPoliciesResponse
2180
+ include Google::Apis::Core::Hashable
2181
+
2182
+ # Set if there are more results than those appearing in this response; to get
2183
+ # the next set of results, call this method again, using this value as the
2184
+ # `page_token`.
2185
+ # Corresponds to the JSON property `nextPageToken`
2186
+ # @return [String]
2187
+ attr_accessor :next_page_token
2188
+
2189
+ # A list of IamPolicy that match the search query. Related information such
2190
+ # as the associated resource is returned along with the policy.
2191
+ # Corresponds to the JSON property `results`
2192
+ # @return [Array<Google::Apis::CloudassetV1::IamPolicySearchResult>]
2193
+ attr_accessor :results
2194
+
2195
+ def initialize(**args)
2196
+ update!(**args)
2197
+ end
2198
+
2199
+ # Update properties of this object
2200
+ def update!(**args)
2201
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2202
+ @results = args[:results] if args.key?(:results)
2203
+ end
2204
+ end
2205
+
2206
+ # Search all resources response.
2207
+ class SearchAllResourcesResponse
2208
+ include Google::Apis::Core::Hashable
2209
+
2210
+ # If there are more results than those appearing in this response, then
2211
+ # `next_page_token` is included. To get the next set of results, call this
2212
+ # method again using the value of `next_page_token` as `page_token`.
2213
+ # Corresponds to the JSON property `nextPageToken`
2214
+ # @return [String]
2215
+ attr_accessor :next_page_token
2216
+
2217
+ # A list of Resources that match the search query. It contains the resource
2218
+ # standard metadata information.
2219
+ # Corresponds to the JSON property `results`
2220
+ # @return [Array<Google::Apis::CloudassetV1::ResourceSearchResult>]
2221
+ attr_accessor :results
2222
+
2223
+ def initialize(**args)
2224
+ update!(**args)
2225
+ end
2226
+
2227
+ # Update properties of this object
2228
+ def update!(**args)
2229
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2230
+ @results = args[:results] if args.key?(:results)
2231
+ end
2232
+ end
2233
+
1890
2234
  # The `Status` type defines a logical error model that is suitable for
1891
2235
  # different programming environments, including REST APIs and RPC APIs. It is
1892
2236
  # used by [gRPC](https://github.com/grpc). Each `Status` message contains