google-apis-cloudasset_v1 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23482ced6692a4dcfc43fccb3107a424d76c4c8721404ac7f5797d0b4a21963e
4
- data.tar.gz: fa44315861000f47e36b8f2d1053d8ed3590340e7b3bdb6c0ac27fdb3e890012
3
+ metadata.gz: 89aa38950b0f61e325ec426c22c4e303dae057a70c39819b52e558883dc33717
4
+ data.tar.gz: dd1fd00b994780ff52f394199af03ffeeeae7e56f42a9c06cbd57002767475c8
5
5
  SHA512:
6
- metadata.gz: 512f505d01c6f126f87f358181ae9f28d196684193e44f08815bb8b314bee77b16fbb5ff2eca2b4333bc109b8e1c090c4c8f541fbcd01a2ba244dc559d5c1b13
7
- data.tar.gz: 06145aaaa3933e46ab4099c345e1115243f65e89a657703b13414e93021ab467e3c251aeaa72822638950f39262e36dedc9010d91854359aaeb05c960692d4dd
6
+ metadata.gz: e714f23434b0fbc0331600c7b5dcfdb355e51392b2609cbd283bd6de973edebba1b477a5af7520e190558f71e28160f37a015575bdeeec9e1ac7a7107a4928e0
7
+ data.tar.gz: 60549c56ae38a9680ecfa42fd4877f629172f3f7c3f82df9d48be3a682748422b67d038a07a86ade2397904765172953c5649db9f59854b88f99a1ffa4b09b4e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-cloudasset_v1
2
2
 
3
+ ### v0.6.0 (2021-03-31)
4
+
5
+ * Regenerated from discovery document revision 20210326
6
+
7
+ ### v0.5.0 (2021-03-09)
8
+
9
+ * Regenerated from discovery document revision 20210305
10
+ * Regenerated using generator version 0.2.0
11
+
12
+ ### v0.4.0 (2021-03-04)
13
+
14
+ * Regenerated from discovery document revision 20210226
15
+
16
+ ### v0.3.0 (2021-02-17)
17
+
18
+ * Regenerated from discovery document revision 20210212
19
+
20
+ ### v0.2.0 (2021-02-03)
21
+
22
+ * Regenerated from discovery document revision 20210129
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated from discovery document revision 20210101
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # View and manage your data across Google Cloud Platform services
32
+ # See, edit, configure, and delete your Google Cloud Platform data
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
@@ -54,8 +54,7 @@ module Google
54
54
  class AnalyzeIamPolicyLongrunningRequest
55
55
  include Google::Apis::Core::Hashable
56
56
 
57
- # ## LINT.IfChange Keep in sync with ## logs/proto/cloud_asset_inventory/
58
- # iam_policy_analyzer_log.proto IAM policy analysis query message.
57
+ # ## IAM policy analysis query message.
59
58
  # Corresponds to the JSON property `analysisQuery`
60
59
  # @return [Google::Apis::CloudassetV1::IamPolicyAnalysisQuery]
61
60
  attr_accessor :analysis_query
@@ -76,6 +75,19 @@ module Google
76
75
  end
77
76
  end
78
77
 
78
+ # A response message for AssetService.AnalyzeIamPolicyLongrunning.
79
+ class AnalyzeIamPolicyLongrunningResponse
80
+ include Google::Apis::Core::Hashable
81
+
82
+ def initialize(**args)
83
+ update!(**args)
84
+ end
85
+
86
+ # Update properties of this object
87
+ def update!(**args)
88
+ end
89
+ end
90
+
79
91
  # A response message for AssetService.AnalyzeIamPolicy.
80
92
  class AnalyzeIamPolicyResponse
81
93
  include Google::Apis::Core::Hashable
@@ -764,7 +776,9 @@ module Google
764
776
  # The uri of the Cloud Storage object. It's the same uri that is used by gsutil.
765
777
  # Example: "gs://bucket_name/object_name". See [Viewing and Editing Object
766
778
  # Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) for
767
- # more information.
779
+ # more information. If the specified Cloud Storage object already exists and
780
+ # there is no [hold](https://cloud.google.com/storage/docs/object-holds), it
781
+ # will be overwritten with the exported result.
768
782
  # Corresponds to the JSON property `uri`
769
783
  # @return [String]
770
784
  attr_accessor :uri
@@ -955,9 +969,11 @@ module Google
955
969
  include Google::Apis::Core::Hashable
956
970
 
957
971
  # Required. The uri of the Cloud Storage object. It's the same uri that is used
958
- # by gsutil. For example: "gs://bucket_name/object_name". See [Quickstart: Using
959
- # the gsutil tool] (https://cloud.google.com/storage/docs/quickstart-gsutil) for
960
- # examples.
972
+ # by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and Editing
973
+ # Object Metadata](https://cloud.google.com/storage/docs/viewing-editing-
974
+ # metadata) for more information. If the specified Cloud Storage object already
975
+ # exists and there is no [hold](https://cloud.google.com/storage/docs/object-
976
+ # holds), it will be overwritten with the analysis result.
961
977
  # Corresponds to the JSON property `uri`
962
978
  # @return [String]
963
979
  attr_accessor :uri
@@ -1059,6 +1075,326 @@ module Google
1059
1075
  end
1060
1076
  end
1061
1077
 
1078
+ # An asset in Google Cloud. An asset can be any resource in the Google Cloud [
1079
+ # resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-
1080
+ # platform-resource-hierarchy), a resource outside the Google Cloud resource
1081
+ # hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy
1082
+ # (e.g. Cloud IAM policy). See [Supported asset types](https://cloud.google.com/
1083
+ # asset-inventory/docs/supported-asset-types) for more information.
1084
+ class GoogleCloudAssetV1p7beta1Asset
1085
+ include Google::Apis::Core::Hashable
1086
+
1087
+ # An `AccessLevel` is a label that can be applied to requests to Google Cloud
1088
+ # services, along with a list of requirements necessary for the label to be
1089
+ # applied.
1090
+ # Corresponds to the JSON property `accessLevel`
1091
+ # @return [Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1AccessLevel]
1092
+ attr_accessor :access_level
1093
+
1094
+ # `AccessPolicy` is a container for `AccessLevels` (which define the necessary
1095
+ # attributes to use Google Cloud services) and `ServicePerimeters` (which define
1096
+ # regions of services able to freely pass data within a perimeter). An access
1097
+ # policy is globally visible within an organization, and the restrictions it
1098
+ # specifies apply to all projects within an organization.
1099
+ # Corresponds to the JSON property `accessPolicy`
1100
+ # @return [Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1AccessPolicy]
1101
+ attr_accessor :access_policy
1102
+
1103
+ # The ancestry path of an asset in Google Cloud [resource hierarchy](https://
1104
+ # cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
1105
+ # represented as a list of relative resource names. An ancestry path starts with
1106
+ # the closest ancestor in the hierarchy and ends at root. If the asset is a
1107
+ # project, folder, or organization, the ancestry path starts from the asset
1108
+ # itself. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
1109
+ # Corresponds to the JSON property `ancestors`
1110
+ # @return [Array<String>]
1111
+ attr_accessor :ancestors
1112
+
1113
+ # The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported
1114
+ # asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-
1115
+ # types) for more information.
1116
+ # Corresponds to the JSON property `assetType`
1117
+ # @return [String]
1118
+ attr_accessor :asset_type
1119
+
1120
+ # An Identity and Access Management (IAM) policy, which specifies access
1121
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1122
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1123
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1124
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1125
+ # role or a user-created custom role. For some types of Google Cloud resources,
1126
+ # a `binding` can also specify a `condition`, which is a logical expression that
1127
+ # allows access to a resource only if the expression evaluates to `true`. A
1128
+ # condition can add constraints based on attributes of the request, the resource,
1129
+ # or both. To learn which resources support conditions in their IAM policies,
1130
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1131
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1132
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1133
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1134
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1135
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1136
+ # title": "expirable access", "description": "Does not grant access after Sep
1137
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1138
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1139
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1140
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1141
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1142
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1143
+ # description: Does not grant access after Sep 2020 expression: request.time <
1144
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1145
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1146
+ # google.com/iam/docs/).
1147
+ # Corresponds to the JSON property `iamPolicy`
1148
+ # @return [Google::Apis::CloudassetV1::Policy]
1149
+ attr_accessor :iam_policy
1150
+
1151
+ # The full name of the asset. Example: `//compute.googleapis.com/projects/
1152
+ # my_project_123/zones/zone1/instances/instance1` See [Resource names](https://
1153
+ # cloud.google.com/apis/design/resource_names#full_resource_name) for more
1154
+ # information.
1155
+ # Corresponds to the JSON property `name`
1156
+ # @return [String]
1157
+ attr_accessor :name
1158
+
1159
+ # A representation of an [organization policy](https://cloud.google.com/resource-
1160
+ # manager/docs/organization-policy/overview#organization_policy). There can be
1161
+ # more than one organization policy with different constraints set on a given
1162
+ # resource.
1163
+ # Corresponds to the JSON property `orgPolicy`
1164
+ # @return [Array<Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy>]
1165
+ attr_accessor :org_policy
1166
+
1167
+ # The detailed related assets with the `relationship_type`.
1168
+ # Corresponds to the JSON property `relatedAssets`
1169
+ # @return [Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1RelatedAssets]
1170
+ attr_accessor :related_assets
1171
+
1172
+ # A representation of a Google Cloud resource.
1173
+ # Corresponds to the JSON property `resource`
1174
+ # @return [Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1Resource]
1175
+ attr_accessor :resource
1176
+
1177
+ # `ServicePerimeter` describes a set of Google Cloud resources which can freely
1178
+ # import and export data amongst themselves, but not export outside of the `
1179
+ # ServicePerimeter`. If a request with a source within this `ServicePerimeter`
1180
+ # has a target outside of the `ServicePerimeter`, the request will be blocked.
1181
+ # Otherwise the request is allowed. There are two types of Service Perimeter -
1182
+ # Regular and Bridge. Regular Service Perimeters cannot overlap, a single Google
1183
+ # Cloud project can only belong to a single regular Service Perimeter. Service
1184
+ # Perimeter Bridges can contain only Google Cloud projects as members, a single
1185
+ # Google Cloud project may belong to multiple Service Perimeter Bridges.
1186
+ # Corresponds to the JSON property `servicePerimeter`
1187
+ # @return [Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter]
1188
+ attr_accessor :service_perimeter
1189
+
1190
+ # The last update timestamp of an asset. update_time is updated when create/
1191
+ # update/delete operation is performed.
1192
+ # Corresponds to the JSON property `updateTime`
1193
+ # @return [String]
1194
+ attr_accessor :update_time
1195
+
1196
+ def initialize(**args)
1197
+ update!(**args)
1198
+ end
1199
+
1200
+ # Update properties of this object
1201
+ def update!(**args)
1202
+ @access_level = args[:access_level] if args.key?(:access_level)
1203
+ @access_policy = args[:access_policy] if args.key?(:access_policy)
1204
+ @ancestors = args[:ancestors] if args.key?(:ancestors)
1205
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
1206
+ @iam_policy = args[:iam_policy] if args.key?(:iam_policy)
1207
+ @name = args[:name] if args.key?(:name)
1208
+ @org_policy = args[:org_policy] if args.key?(:org_policy)
1209
+ @related_assets = args[:related_assets] if args.key?(:related_assets)
1210
+ @resource = args[:resource] if args.key?(:resource)
1211
+ @service_perimeter = args[:service_perimeter] if args.key?(:service_perimeter)
1212
+ @update_time = args[:update_time] if args.key?(:update_time)
1213
+ end
1214
+ end
1215
+
1216
+ # An asset identify in Google Cloud which contains its name, type and ancestors.
1217
+ # An asset can be any resource in the Google Cloud [resource hierarchy](https://
1218
+ # cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a
1219
+ # resource outside the Google Cloud resource hierarchy (such as Google
1220
+ # Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy).
1221
+ # See [Supported asset types](https://cloud.google.com/asset-inventory/docs/
1222
+ # supported-asset-types) for more information.
1223
+ class GoogleCloudAssetV1p7beta1RelatedAsset
1224
+ include Google::Apis::Core::Hashable
1225
+
1226
+ # The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.
1227
+ # google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
1228
+ # represented as a list of relative resource names. An ancestry path starts with
1229
+ # the closest ancestor in the hierarchy and ends at root. Example: `["projects/
1230
+ # 123456789", "folders/5432", "organizations/1234"]`
1231
+ # Corresponds to the JSON property `ancestors`
1232
+ # @return [Array<String>]
1233
+ attr_accessor :ancestors
1234
+
1235
+ # The full name of the asset. Example: `//compute.googleapis.com/projects/
1236
+ # my_project_123/zones/zone1/instances/instance1` See [Resource names](https://
1237
+ # cloud.google.com/apis/design/resource_names#full_resource_name) for more
1238
+ # information.
1239
+ # Corresponds to the JSON property `asset`
1240
+ # @return [String]
1241
+ attr_accessor :asset
1242
+
1243
+ # The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported
1244
+ # asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-
1245
+ # types) for more information.
1246
+ # Corresponds to the JSON property `assetType`
1247
+ # @return [String]
1248
+ attr_accessor :asset_type
1249
+
1250
+ def initialize(**args)
1251
+ update!(**args)
1252
+ end
1253
+
1254
+ # Update properties of this object
1255
+ def update!(**args)
1256
+ @ancestors = args[:ancestors] if args.key?(:ancestors)
1257
+ @asset = args[:asset] if args.key?(:asset)
1258
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
1259
+ end
1260
+ end
1261
+
1262
+ # The detailed related assets with the `relationship_type`.
1263
+ class GoogleCloudAssetV1p7beta1RelatedAssets
1264
+ include Google::Apis::Core::Hashable
1265
+
1266
+ # The peer resources of the relationship.
1267
+ # Corresponds to the JSON property `assets`
1268
+ # @return [Array<Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1RelatedAsset>]
1269
+ attr_accessor :assets
1270
+
1271
+ # The relationship attributes which include `type`, `source_resource_type`, `
1272
+ # target_resource_type` and `action`.
1273
+ # Corresponds to the JSON property `relationshipAttributes`
1274
+ # @return [Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1RelationshipAttributes]
1275
+ attr_accessor :relationship_attributes
1276
+
1277
+ def initialize(**args)
1278
+ update!(**args)
1279
+ end
1280
+
1281
+ # Update properties of this object
1282
+ def update!(**args)
1283
+ @assets = args[:assets] if args.key?(:assets)
1284
+ @relationship_attributes = args[:relationship_attributes] if args.key?(:relationship_attributes)
1285
+ end
1286
+ end
1287
+
1288
+ # The relationship attributes which include `type`, `source_resource_type`, `
1289
+ # target_resource_type` and `action`.
1290
+ class GoogleCloudAssetV1p7beta1RelationshipAttributes
1291
+ include Google::Apis::Core::Hashable
1292
+
1293
+ # The detail of the relationship, e.g. `contains`, `attaches`
1294
+ # Corresponds to the JSON property `action`
1295
+ # @return [String]
1296
+ attr_accessor :action
1297
+
1298
+ # The source asset type. Example: `compute.googleapis.com/Instance`
1299
+ # Corresponds to the JSON property `sourceResourceType`
1300
+ # @return [String]
1301
+ attr_accessor :source_resource_type
1302
+
1303
+ # The target asset type. Example: `compute.googleapis.com/Disk`
1304
+ # Corresponds to the JSON property `targetResourceType`
1305
+ # @return [String]
1306
+ attr_accessor :target_resource_type
1307
+
1308
+ # The unique identifier of the relationship type. Example: `
1309
+ # INSTANCE_TO_INSTANCEGROUP`
1310
+ # Corresponds to the JSON property `type`
1311
+ # @return [String]
1312
+ attr_accessor :type
1313
+
1314
+ def initialize(**args)
1315
+ update!(**args)
1316
+ end
1317
+
1318
+ # Update properties of this object
1319
+ def update!(**args)
1320
+ @action = args[:action] if args.key?(:action)
1321
+ @source_resource_type = args[:source_resource_type] if args.key?(:source_resource_type)
1322
+ @target_resource_type = args[:target_resource_type] if args.key?(:target_resource_type)
1323
+ @type = args[:type] if args.key?(:type)
1324
+ end
1325
+ end
1326
+
1327
+ # A representation of a Google Cloud resource.
1328
+ class GoogleCloudAssetV1p7beta1Resource
1329
+ include Google::Apis::Core::Hashable
1330
+
1331
+ # The content of the resource, in which some sensitive fields are removed and
1332
+ # may not be present.
1333
+ # Corresponds to the JSON property `data`
1334
+ # @return [Hash<String,Object>]
1335
+ attr_accessor :data
1336
+
1337
+ # The URL of the discovery document containing the resource's JSON schema.
1338
+ # Example: `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` This
1339
+ # value is unspecified for resources that do not have an API based on a
1340
+ # discovery document, such as Cloud Bigtable.
1341
+ # Corresponds to the JSON property `discoveryDocumentUri`
1342
+ # @return [String]
1343
+ attr_accessor :discovery_document_uri
1344
+
1345
+ # The JSON schema name listed in the discovery document. Example: `Project` This
1346
+ # value is unspecified for resources that do not have an API based on a
1347
+ # discovery document, such as Cloud Bigtable.
1348
+ # Corresponds to the JSON property `discoveryName`
1349
+ # @return [String]
1350
+ attr_accessor :discovery_name
1351
+
1352
+ # The location of the resource in Google Cloud, such as its zone and region. For
1353
+ # more information, see https://cloud.google.com/about/locations/.
1354
+ # Corresponds to the JSON property `location`
1355
+ # @return [String]
1356
+ attr_accessor :location
1357
+
1358
+ # The full name of the immediate parent of this resource. See [Resource Names](
1359
+ # https://cloud.google.com/apis/design/resource_names#full_resource_name) for
1360
+ # more information. For Google Cloud assets, this value is the parent resource
1361
+ # defined in the [Cloud IAM policy hierarchy](https://cloud.google.com/iam/docs/
1362
+ # overview#policy_hierarchy). Example: `//cloudresourcemanager.googleapis.com/
1363
+ # projects/my_project_123` For third-party assets, this field may be set
1364
+ # differently.
1365
+ # Corresponds to the JSON property `parent`
1366
+ # @return [String]
1367
+ attr_accessor :parent
1368
+
1369
+ # The REST URL for accessing the resource. An HTTP `GET` request using this URL
1370
+ # returns the resource itself. Example: `https://cloudresourcemanager.googleapis.
1371
+ # com/v1/projects/my-project-123` This value is unspecified for resources
1372
+ # without a REST API.
1373
+ # Corresponds to the JSON property `resourceUrl`
1374
+ # @return [String]
1375
+ attr_accessor :resource_url
1376
+
1377
+ # The API version. Example: `v1`
1378
+ # Corresponds to the JSON property `version`
1379
+ # @return [String]
1380
+ attr_accessor :version
1381
+
1382
+ def initialize(**args)
1383
+ update!(**args)
1384
+ end
1385
+
1386
+ # Update properties of this object
1387
+ def update!(**args)
1388
+ @data = args[:data] if args.key?(:data)
1389
+ @discovery_document_uri = args[:discovery_document_uri] if args.key?(:discovery_document_uri)
1390
+ @discovery_name = args[:discovery_name] if args.key?(:discovery_name)
1391
+ @location = args[:location] if args.key?(:location)
1392
+ @parent = args[:parent] if args.key?(:parent)
1393
+ @resource_url = args[:resource_url] if args.key?(:resource_url)
1394
+ @version = args[:version] if args.key?(:version)
1395
+ end
1396
+ end
1397
+
1062
1398
  # Used in `policy_type` to specify how `boolean_policy` will behave at this
1063
1399
  # resource.
1064
1400
  class GoogleCloudOrgpolicyV1BooleanPolicy
@@ -2156,8 +2492,7 @@ module Google
2156
2492
  class IamPolicyAnalysis
2157
2493
  include Google::Apis::Core::Hashable
2158
2494
 
2159
- # ## LINT.IfChange Keep in sync with ## logs/proto/cloud_asset_inventory/
2160
- # iam_policy_analyzer_log.proto IAM policy analysis query message.
2495
+ # ## IAM policy analysis query message.
2161
2496
  # Corresponds to the JSON property `analysisQuery`
2162
2497
  # @return [Google::Apis::CloudassetV1::IamPolicyAnalysisQuery]
2163
2498
  attr_accessor :analysis_query
@@ -2218,8 +2553,7 @@ module Google
2218
2553
  end
2219
2554
  end
2220
2555
 
2221
- # ## LINT.IfChange Keep in sync with ## logs/proto/cloud_asset_inventory/
2222
- # iam_policy_analyzer_log.proto IAM policy analysis query message.
2556
+ # ## IAM policy analysis query message.
2223
2557
  class IamPolicyAnalysisQuery
2224
2558
  include Google::Apis::Core::Hashable
2225
2559
 
@@ -2394,18 +2728,18 @@ module Google
2394
2728
  # @return [Google::Apis::CloudassetV1::Policy]
2395
2729
  attr_accessor :policy
2396
2730
 
2397
- # Optional. The project that the associated GCP resource belongs to, in the form
2398
- # of projects/`PROJECT_NUMBER`. If an IAM policy is set on a resource (like VM
2731
+ # The project that the associated GCP resource belongs to, in the form of
2732
+ # projects/`PROJECT_NUMBER`. If an IAM policy is set on a resource (like VM
2399
2733
  # instance, Cloud Storage bucket), the project field will indicate the project
2400
2734
  # that contains the resource. If an IAM policy is set on a folder or orgnization,
2401
- # the project field will be empty. To search against the `project`: * specify
2402
- # the `scope` field as this project in your search request.
2735
+ # this field will be empty. To search against the `project`: * specify the `
2736
+ # scope` field as this project in your search request.
2403
2737
  # Corresponds to the JSON property `project`
2404
2738
  # @return [String]
2405
2739
  attr_accessor :project
2406
2740
 
2407
- # Required. The full resource name of the resource associated with this IAM
2408
- # policy. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/
2741
+ # The full resource name of the resource associated with this IAM policy.
2742
+ # Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/
2409
2743
  # instances/instance1`. See [Cloud Asset Inventory Resource Name Format](https://
2410
2744
  # cloud.google.com/asset-inventory/docs/resource-name-format) for more
2411
2745
  # information. To search against the `resource`: * use a field query. Example: `
@@ -3018,96 +3352,176 @@ module Google
3018
3352
  class ResourceSearchResult
3019
3353
  include Google::Apis::Core::Hashable
3020
3354
 
3021
- # Optional. The additional searchable attributes of this resource. The
3022
- # attributes may vary from one resource type to another. Examples: `projectId`
3023
- # for Project, `dnsName` for DNS ManagedZone. This field contains a subset of
3024
- # the resource metadata fields that are returned by the List or Get APIs
3025
- # provided by the corresponding GCP service (e.g., Compute Engine). see [API
3026
- # references and supported searchable attributes](https://cloud.google.com/asset-
3027
- # inventory/docs/supported-asset-types#searchable_asset_types) for more
3028
- # information. You can search values of these fields through free text search.
3029
- # However, you should not consume the field programically as the field names and
3030
- # values may change as the GCP service updates to a new incompatible API version.
3031
- # To search against the `additional_attributes`: * use a free text query to
3032
- # match the attributes values. Example: to search `additional_attributes = `
3033
- # dnsName: "foobar" ``, you can issue a query `foobar`.
3355
+ # The additional searchable attributes of this resource. The attributes may vary
3356
+ # from one resource type to another. Examples: `projectId` for Project, `dnsName`
3357
+ # for DNS ManagedZone. This field contains a subset of the resource metadata
3358
+ # fields that are returned by the List or Get APIs provided by the corresponding
3359
+ # GCP service (e.g., Compute Engine). see [API references and supported
3360
+ # searchable attributes](https://cloud.google.com/asset-inventory/docs/supported-
3361
+ # asset-types#searchable_asset_types) to see which fields are included. You can
3362
+ # search values of these fields through free text search. However, you should
3363
+ # not consume the field programically as the field names and values may change
3364
+ # as the GCP service updates to a new incompatible API version. To search
3365
+ # against the `additional_attributes`: * use a free text query to match the
3366
+ # attributes values. Example: to search `additional_attributes = ` dnsName: "
3367
+ # foobar" ``, you can issue a query `foobar`.
3034
3368
  # Corresponds to the JSON property `additionalAttributes`
3035
3369
  # @return [Hash<String,Object>]
3036
3370
  attr_accessor :additional_attributes
3037
3371
 
3038
- # Required. The type of this resource. Example: `compute.googleapis.com/Disk`.
3039
- # To search against the `asset_type`: * specify the `asset_type` field in your
3040
- # search request.
3372
+ # The type of this resource. Example: `compute.googleapis.com/Disk`. To search
3373
+ # against the `asset_type`: * specify the `asset_type` field in your search
3374
+ # request.
3041
3375
  # Corresponds to the JSON property `assetType`
3042
3376
  # @return [String]
3043
3377
  attr_accessor :asset_type
3044
3378
 
3045
- # Optional. One or more paragraphs of text description of this resource. Maximum
3046
- # length could be up to 1M bytes. This field is available only when the resource'
3047
- # s proto contains it. To search against the `description`: * use a field query.
3048
- # Example: `description:"*important instance*"` * use a free text query. Example:
3049
- # `"*important instance*"`
3379
+ # The create timestamp of this resource, at which the resource was created. The
3380
+ # granularity is in seconds. Timestamp.nanos will always be 0. This field is
3381
+ # available only when the resource's proto contains it. To search against `
3382
+ # create_time`: * use a field query (value in seconds). Example: `createTime >=
3383
+ # 1594294238`
3384
+ # Corresponds to the JSON property `createTime`
3385
+ # @return [String]
3386
+ attr_accessor :create_time
3387
+
3388
+ # One or more paragraphs of text description of this resource. Maximum length
3389
+ # could be up to 1M bytes. This field is available only when the resource's
3390
+ # proto contains it. To search against the `description`: * use a field query.
3391
+ # Example: `description:"important instance"` * use a free text query. Example: `
3392
+ # "important instance"`
3050
3393
  # Corresponds to the JSON property `description`
3051
3394
  # @return [String]
3052
3395
  attr_accessor :description
3053
3396
 
3054
- # Optional. The display name of this resource. This field is available only when
3055
- # the resource's proto contains it. To search against the `display_name`: * use
3056
- # a field query. Example: `displayName:"My Instance"` * use a free text query.
3397
+ # The display name of this resource. This field is available only when the
3398
+ # resource's proto contains it. To search against the `display_name`: * use a
3399
+ # field query. Example: `displayName:"My Instance"` * use a free text query.
3057
3400
  # Example: `"My Instance"`
3058
3401
  # Corresponds to the JSON property `displayName`
3059
3402
  # @return [String]
3060
3403
  attr_accessor :display_name
3061
3404
 
3062
- # Optional. Labels associated with this resource. See [Labelling and grouping
3063
- # GCP resources](https://cloud.google.com/blog/products/gcp/labelling-and-
3064
- # grouping-your-google-cloud-platform-resources) for more information. This
3065
- # field is available only when the resource's proto contains it. To search
3066
- # against the `labels`: * use a field query: - query on any label's key or value.
3067
- # Example: `labels:prod` - query by a given label. Example: `labels.env:prod` -
3068
- # query by a given label's existence. Example: `labels.env:*` * use a free text
3069
- # query. Example: `prod`
3405
+ # The folder(s) that this resource belongs to, in the form of folders/`
3406
+ # FOLDER_NUMBER`. This field is available when the resource belongs to one or
3407
+ # more folders. To search against `folders`: * use a field query. Example: `
3408
+ # folders:(123 OR 456)` * use a free text query. Example: `123` * specify the `
3409
+ # scope` field as this folder in your search request.
3410
+ # Corresponds to the JSON property `folders`
3411
+ # @return [Array<String>]
3412
+ attr_accessor :folders
3413
+
3414
+ # The Cloud KMS [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/
3415
+ # projects.locations.keyRings.cryptoKeys?hl=en) name or [CryptoKeyVersion](https:
3416
+ # //cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.
3417
+ # cryptoKeys.cryptoKeyVersions?hl=en) name. This field is available only when
3418
+ # the resource's proto contains it. To search against the `kms_key`: * use a
3419
+ # field query. Example: `kmsKey:key` * use a free text query. Example: `key`
3420
+ # Corresponds to the JSON property `kmsKey`
3421
+ # @return [String]
3422
+ attr_accessor :kms_key
3423
+
3424
+ # Labels associated with this resource. See [Labelling and grouping GCP
3425
+ # resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-
3426
+ # your-google-cloud-platform-resources) for more information. This field is
3427
+ # available only when the resource's proto contains it. To search against the `
3428
+ # labels`: * use a field query: - query on any label's key or value. Example: `
3429
+ # labels:prod` - query by a given label. Example: `labels.env:prod` - query by a
3430
+ # given label's existence. Example: `labels.env:*` * use a free text query.
3431
+ # Example: `prod`
3070
3432
  # Corresponds to the JSON property `labels`
3071
3433
  # @return [Hash<String,String>]
3072
3434
  attr_accessor :labels
3073
3435
 
3074
- # Optional. Location can be `global`, regional like `us-east1`, or zonal like `
3075
- # us-west1-b`. This field is available only when the resource's proto contains
3076
- # it. To search against the `location`: * use a field query. Example: `location:
3077
- # us-west*` * use a free text query. Example: `us-west*`
3436
+ # Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.
3437
+ # This field is available only when the resource's proto contains it. To search
3438
+ # against the `location`: * use a field query. Example: `location:us-west*` *
3439
+ # use a free text query. Example: `us-west*`
3078
3440
  # Corresponds to the JSON property `location`
3079
3441
  # @return [String]
3080
3442
  attr_accessor :location
3081
3443
 
3082
- # Required. The full resource name of this resource. Example: `//compute.
3083
- # googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [
3084
- # Cloud Asset Inventory Resource Name Format](https://cloud.google.com/asset-
3085
- # inventory/docs/resource-name-format) for more information. To search against
3086
- # the `name`: * use a field query. Example: `name:instance1` * use a free text
3087
- # query. Example: `instance1`
3444
+ # The full resource name of this resource. Example: `//compute.googleapis.com/
3445
+ # projects/my_project_123/zones/zone1/instances/instance1`. See [Cloud Asset
3446
+ # Inventory Resource Name Format](https://cloud.google.com/asset-inventory/docs/
3447
+ # resource-name-format) for more information. To search against the `name`: *
3448
+ # use a field query. Example: `name:instance1` * use a free text query. Example:
3449
+ # `instance1`
3088
3450
  # Corresponds to the JSON property `name`
3089
3451
  # @return [String]
3090
3452
  attr_accessor :name
3091
3453
 
3092
- # Optional. Network tags associated with this resource. Like labels, network
3093
- # tags are a type of annotations used to group GCP resources. See [Labelling GCP
3094
- # resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-
3095
- # your-google-cloud-platform-resources) for more information. This field is
3096
- # available only when the resource's proto contains it. To search against the `
3097
- # network_tags`: * use a field query. Example: `networkTags:internal` * use a
3098
- # free text query. Example: `internal`
3454
+ # Network tags associated with this resource. Like labels, network tags are a
3455
+ # type of annotations used to group GCP resources. See [Labelling GCP resources](
3456
+ # https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-
3457
+ # cloud-platform-resources) for more information. This field is available only
3458
+ # when the resource's proto contains it. To search against the `network_tags`: *
3459
+ # use a field query. Example: `networkTags:internal` * use a free text query.
3460
+ # Example: `internal`
3099
3461
  # Corresponds to the JSON property `networkTags`
3100
3462
  # @return [Array<String>]
3101
3463
  attr_accessor :network_tags
3102
3464
 
3103
- # Optional. The project that this resource belongs to, in the form of projects/`
3465
+ # The organization that this resource belongs to, in the form of organizations/`
3466
+ # ORGANIZATION_NUMBER`. This field is available when the resource belongs to an
3467
+ # organization. To search against `organization`: * use a field query. Example: `
3468
+ # organization:123` * use a free text query. Example: `123` * specify the `scope`
3469
+ # field as this organization in your search request.
3470
+ # Corresponds to the JSON property `organization`
3471
+ # @return [String]
3472
+ attr_accessor :organization
3473
+
3474
+ # The type of this resource's immediate parent, if there is one. To search
3475
+ # against the `parent_asset_type`: * use a field query. Example: `
3476
+ # parentAssetType:"cloudresourcemanager.googleapis.com/Project"` * use a free
3477
+ # text query. Example: `cloudresourcemanager.googleapis.com/Project`
3478
+ # Corresponds to the JSON property `parentAssetType`
3479
+ # @return [String]
3480
+ attr_accessor :parent_asset_type
3481
+
3482
+ # The full resource name of this resource's parent, if it has one. To search
3483
+ # against the `parent_full_resource_name`: * use a field query. Example: `
3484
+ # parentFullResourceName:"project-name"` * use a free text query. Example: `
3485
+ # project-name`
3486
+ # Corresponds to the JSON property `parentFullResourceName`
3487
+ # @return [String]
3488
+ attr_accessor :parent_full_resource_name
3489
+
3490
+ # The project that this resource belongs to, in the form of projects/`
3104
3491
  # PROJECT_NUMBER`. This field is available when the resource belongs to a
3105
- # project. To search against the `project`: * specify the `scope` field as this
3106
- # project in your search request.
3492
+ # project. To search against `project`: * use a field query. Example: `project:
3493
+ # 12345` * use a free text query. Example: `12345` * specify the `scope` field
3494
+ # as this project in your search request.
3107
3495
  # Corresponds to the JSON property `project`
3108
3496
  # @return [String]
3109
3497
  attr_accessor :project
3110
3498
 
3499
+ # The state of this resource. Different resources types have different state
3500
+ # definitions that are mapped from various fields of different resource types.
3501
+ # This field is available only when the resource's proto contains it. Example:
3502
+ # If the resource is an instance provided by Compute Engine, its state will
3503
+ # include PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED,
3504
+ # REPAIRING, and TERMINATED. See `status` definition in [API Reference](https://
3505
+ # cloud.google.com/compute/docs/reference/rest/v1/instances). If the resource is
3506
+ # a project provided by Cloud Resource Manager, its state will include
3507
+ # LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and DELETE_IN_PROGRESS.
3508
+ # See `lifecycleState` definition in [API Reference](https://cloud.google.com/
3509
+ # resource-manager/reference/rest/v1/projects). To search against the `state`: *
3510
+ # use a field query. Example: `state:RUNNING` * use a free text query. Example: `
3511
+ # RUNNING`
3512
+ # Corresponds to the JSON property `state`
3513
+ # @return [String]
3514
+ attr_accessor :state
3515
+
3516
+ # The last update timestamp of this resource, at which the resource was last
3517
+ # modified or deleted. The granularity is in seconds. Timestamp.nanos will
3518
+ # always be 0. This field is available only when the resource's proto contains
3519
+ # it. To search against `update_time`: * use a field query (value in seconds).
3520
+ # Example: `updateTime < 1594294238`
3521
+ # Corresponds to the JSON property `updateTime`
3522
+ # @return [String]
3523
+ attr_accessor :update_time
3524
+
3111
3525
  def initialize(**args)
3112
3526
  update!(**args)
3113
3527
  end
@@ -3116,13 +3530,21 @@ module Google
3116
3530
  def update!(**args)
3117
3531
  @additional_attributes = args[:additional_attributes] if args.key?(:additional_attributes)
3118
3532
  @asset_type = args[:asset_type] if args.key?(:asset_type)
3533
+ @create_time = args[:create_time] if args.key?(:create_time)
3119
3534
  @description = args[:description] if args.key?(:description)
3120
3535
  @display_name = args[:display_name] if args.key?(:display_name)
3536
+ @folders = args[:folders] if args.key?(:folders)
3537
+ @kms_key = args[:kms_key] if args.key?(:kms_key)
3121
3538
  @labels = args[:labels] if args.key?(:labels)
3122
3539
  @location = args[:location] if args.key?(:location)
3123
3540
  @name = args[:name] if args.key?(:name)
3124
3541
  @network_tags = args[:network_tags] if args.key?(:network_tags)
3542
+ @organization = args[:organization] if args.key?(:organization)
3543
+ @parent_asset_type = args[:parent_asset_type] if args.key?(:parent_asset_type)
3544
+ @parent_full_resource_name = args[:parent_full_resource_name] if args.key?(:parent_full_resource_name)
3125
3545
  @project = args[:project] if args.key?(:project)
3546
+ @state = args[:state] if args.key?(:state)
3547
+ @update_time = args[:update_time] if args.key?(:update_time)
3126
3548
  end
3127
3549
  end
3128
3550
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudassetV1
18
18
  # Version of the google-apis-cloudasset_v1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210101"
25
+ REVISION = "20210326"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class AnalyzeIamPolicyLongrunningResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class AnalyzeIamPolicyResponse
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -172,6 +178,36 @@ module Google
172
178
  include Google::Apis::Core::JsonObjectSupport
173
179
  end
174
180
 
181
+ class GoogleCloudAssetV1p7beta1Asset
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class GoogleCloudAssetV1p7beta1RelatedAsset
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class GoogleCloudAssetV1p7beta1RelatedAssets
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class GoogleCloudAssetV1p7beta1RelationshipAttributes
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class GoogleCloudAssetV1p7beta1Resource
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
175
211
  class GoogleCloudOrgpolicyV1BooleanPolicy
176
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
213
 
@@ -526,6 +562,12 @@ module Google
526
562
  end
527
563
  end
528
564
 
565
+ class AnalyzeIamPolicyLongrunningResponse
566
+ # @private
567
+ class Representation < Google::Apis::Core::JsonRepresentation
568
+ end
569
+ end
570
+
529
571
  class AnalyzeIamPolicyResponse
530
572
  # @private
531
573
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -757,6 +799,72 @@ module Google
757
799
  end
758
800
  end
759
801
 
802
+ class GoogleCloudAssetV1p7beta1Asset
803
+ # @private
804
+ class Representation < Google::Apis::Core::JsonRepresentation
805
+ property :access_level, as: 'accessLevel', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1AccessLevel, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1AccessLevel::Representation
806
+
807
+ property :access_policy, as: 'accessPolicy', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1AccessPolicy, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1AccessPolicy::Representation
808
+
809
+ collection :ancestors, as: 'ancestors'
810
+ property :asset_type, as: 'assetType'
811
+ property :iam_policy, as: 'iamPolicy', class: Google::Apis::CloudassetV1::Policy, decorator: Google::Apis::CloudassetV1::Policy::Representation
812
+
813
+ property :name, as: 'name'
814
+ collection :org_policy, as: 'orgPolicy', class: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy, decorator: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy::Representation
815
+
816
+ property :related_assets, as: 'relatedAssets', class: Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1RelatedAssets, decorator: Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1RelatedAssets::Representation
817
+
818
+ property :resource, as: 'resource', class: Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1Resource, decorator: Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1Resource::Representation
819
+
820
+ property :service_perimeter, as: 'servicePerimeter', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter::Representation
821
+
822
+ property :update_time, as: 'updateTime'
823
+ end
824
+ end
825
+
826
+ class GoogleCloudAssetV1p7beta1RelatedAsset
827
+ # @private
828
+ class Representation < Google::Apis::Core::JsonRepresentation
829
+ collection :ancestors, as: 'ancestors'
830
+ property :asset, as: 'asset'
831
+ property :asset_type, as: 'assetType'
832
+ end
833
+ end
834
+
835
+ class GoogleCloudAssetV1p7beta1RelatedAssets
836
+ # @private
837
+ class Representation < Google::Apis::Core::JsonRepresentation
838
+ collection :assets, as: 'assets', class: Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1RelatedAsset, decorator: Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1RelatedAsset::Representation
839
+
840
+ property :relationship_attributes, as: 'relationshipAttributes', class: Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1RelationshipAttributes, decorator: Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1RelationshipAttributes::Representation
841
+
842
+ end
843
+ end
844
+
845
+ class GoogleCloudAssetV1p7beta1RelationshipAttributes
846
+ # @private
847
+ class Representation < Google::Apis::Core::JsonRepresentation
848
+ property :action, as: 'action'
849
+ property :source_resource_type, as: 'sourceResourceType'
850
+ property :target_resource_type, as: 'targetResourceType'
851
+ property :type, as: 'type'
852
+ end
853
+ end
854
+
855
+ class GoogleCloudAssetV1p7beta1Resource
856
+ # @private
857
+ class Representation < Google::Apis::Core::JsonRepresentation
858
+ hash :data, as: 'data'
859
+ property :discovery_document_uri, as: 'discoveryDocumentUri'
860
+ property :discovery_name, as: 'discoveryName'
861
+ property :location, as: 'location'
862
+ property :parent, as: 'parent'
863
+ property :resource_url, as: 'resourceUrl'
864
+ property :version, as: 'version'
865
+ end
866
+ end
867
+
760
868
  class GoogleCloudOrgpolicyV1BooleanPolicy
761
869
  # @private
762
870
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1202,13 +1310,21 @@ module Google
1202
1310
  class Representation < Google::Apis::Core::JsonRepresentation
1203
1311
  hash :additional_attributes, as: 'additionalAttributes'
1204
1312
  property :asset_type, as: 'assetType'
1313
+ property :create_time, as: 'createTime'
1205
1314
  property :description, as: 'description'
1206
1315
  property :display_name, as: 'displayName'
1316
+ collection :folders, as: 'folders'
1317
+ property :kms_key, as: 'kmsKey'
1207
1318
  hash :labels, as: 'labels'
1208
1319
  property :location, as: 'location'
1209
1320
  property :name, as: 'name'
1210
1321
  collection :network_tags, as: 'networkTags'
1322
+ property :organization, as: 'organization'
1323
+ property :parent_asset_type, as: 'parentAssetType'
1324
+ property :parent_full_resource_name, as: 'parentFullResourceName'
1211
1325
  property :project, as: 'project'
1326
+ property :state, as: 'state'
1327
+ property :update_time, as: 'updateTime'
1212
1328
  end
1213
1329
  end
1214
1330
 
@@ -525,7 +525,7 @@ module Google
525
525
  # @param [String] scope
526
526
  # Required. A scope can be a project, a folder, or an organization. The search
527
527
  # is limited to the IAM policies within the `scope`. The caller must be granted
528
- # the [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-
528
+ # the [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-
529
529
  # inventory/docs/access-control#required_permissions) permission on the desired
530
530
  # scope. The allowed values are: * projects/`PROJECT_ID` (e.g., "projects/foo-
531
531
  # bar") * projects/`PROJECT_NUMBER` (e.g., "projects/12345678") * folders/`
@@ -552,21 +552,24 @@ module Google
552
552
  # policy structure, see [IAM policy doc](https://cloud.google.com/iam/docs/
553
553
  # policies#structure). Examples: * `policy:amy@gmail.com` to find IAM policy
554
554
  # bindings that specify user "amy@gmail.com". * `policy:roles/compute.admin` to
555
- # find IAM policy bindings that specify the Compute Admin role. * `policy.role.
556
- # permissions:storage.buckets.update` to find IAM policy bindings that specify a
557
- # role containing "storage.buckets.update" permission. Note that if callers don'
558
- # t have `iam.roles.get` access to a role's included permissions, policy
559
- # bindings that specify this role will be dropped from the search results. * `
560
- # resource:organizations/123456` to find IAM policy bindings that are set on "
561
- # organizations/123456". * `resource=//cloudresourcemanager.googleapis.com/
562
- # projects/myproject` to find IAM policy bindings that are set on the project
563
- # named "myproject". * `Important` to find IAM policy bindings that contain "
564
- # Important" as a word in any of the searchable fields (except for the included
565
- # permissions). * `*por*` to find IAM policy bindings that contain "por" as a
566
- # substring in any of the searchable fields (except for the included permissions)
567
- # . * `resource:(instance1 OR instance2) policy:amy` to find IAM policy bindings
568
- # that are set on resources "instance1" or "instance2" and also specify user "
569
- # amy".
555
+ # find IAM policy bindings that specify the Compute Admin role. * `policy:comp*`
556
+ # to find IAM policy bindings that contain "comp" as a prefix of any word in the
557
+ # binding. * `policy.role.permissions:storage.buckets.update` to find IAM policy
558
+ # bindings that specify a role containing "storage.buckets.update" permission.
559
+ # Note that if callers don't have `iam.roles.get` access to a role's included
560
+ # permissions, policy bindings that specify this role will be dropped from the
561
+ # search results. * `policy.role.permissions:upd*` to find IAM policy bindings
562
+ # that specify a role containing "upd" as a prefix of any word in the role
563
+ # permission. Note that if callers don't have `iam.roles.get` access to a role's
564
+ # included permissions, policy bindings that specify this role will be dropped
565
+ # from the search results. * `resource:organizations/123456` to find IAM policy
566
+ # bindings that are set on "organizations/123456". * `resource=//
567
+ # cloudresourcemanager.googleapis.com/projects/myproject` to find IAM policy
568
+ # bindings that are set on the project named "myproject". * `Important` to find
569
+ # IAM policy bindings that contain "Important" as a word in any of the
570
+ # searchable fields (except for the included permissions). * `resource:(
571
+ # instance1 OR instance2) policy:amy` to find IAM policy bindings that are set
572
+ # on resources "instance1" or "instance2" and also specify user "amy".
570
573
  # @param [String] fields
571
574
  # Selector specifying which fields to include in a partial response.
572
575
  # @param [String] quota_user
@@ -604,7 +607,7 @@ module Google
604
607
  # @param [String] scope
605
608
  # Required. A scope can be a project, a folder, or an organization. The search
606
609
  # is limited to the resources within the `scope`. The caller must be granted the
607
- # [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-
610
+ # [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-
608
611
  # inventory/docs/access-control#required_permissions) permission on the desired
609
612
  # scope. The allowed values are: * projects/`PROJECT_ID` (e.g., "projects/foo-
610
613
  # bar") * projects/`PROJECT_NUMBER` (e.g., "projects/12345678") * folders/`
@@ -640,26 +643,31 @@ module Google
640
643
  # next_page_token` from the previous response. The values of all other method
641
644
  # parameters, must be identical to those in the previous call.
642
645
  # @param [String] query
643
- # Optional. The query statement. See [how to construct a query](http://cloud.
646
+ # Optional. The query statement. See [how to construct a query](https://cloud.
644
647
  # google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
645
648
  # for more information. If not specified or empty, it will search all the
646
649
  # resources within the specified `scope`. Examples: * `name:Important` to find
647
650
  # Cloud resources whose name contains "Important" as a word. * `name=Important`
648
651
  # to find the Cloud resource whose name is exactly "Important". * `displayName:
649
652
  # Impor*` to find Cloud resources whose display name contains "Impor" as a
650
- # prefix. * `description:*por*` to find Cloud resources whose description
651
- # contains "por" as a substring. * `location:us-west*` to find Cloud resources
652
- # whose location is prefixed with "us-west". * `labels:prod` to find Cloud
653
- # resources whose labels contain "prod" as a key or value. * `labels.env:prod`
654
- # to find Cloud resources that have a label "env" and its value is "prod". * `
655
- # labels.env:*` to find Cloud resources that have a label "env". * `Important`
656
- # to find Cloud resources that contain "Important" as a word in any of the
657
- # searchable fields. * `Impor*` to find Cloud resources that contain "Impor" as
658
- # a prefix in any of the searchable fields. * `*por*` to find Cloud resources
659
- # that contain "por" as a substring in any of the searchable fields. * `
660
- # Important location:(us-west1 OR global)` to find Cloud resources that contain "
661
- # Important" as a word in any of the searchable fields and are also located in
662
- # the "us-west1" region or the "global" location.
653
+ # prefix of any word in the field. * `location:us-west*` to find Cloud resources
654
+ # whose location contains both "us" and "west" as prefixes. * `labels:prod` to
655
+ # find Cloud resources whose labels contain "prod" as a key or value. * `labels.
656
+ # env:prod` to find Cloud resources that have a label "env" and its value is "
657
+ # prod". * `labels.env:*` to find Cloud resources that have a label "env". * `
658
+ # kmsKey:key` to find Cloud resources encrypted with a customer-managed
659
+ # encryption key whose name contains the word "key". * `state:ACTIVE` to find
660
+ # Cloud resources whose state contains "ACTIVE" as a word. * `createTime<
661
+ # 1609459200` to find Cloud resources that were created before "2021-01-01 00:00:
662
+ # 00 UTC". 1609459200 is the epoch timestamp of "2021-01-01 00:00:00 UTC" in
663
+ # seconds. * `updateTime>1609459200` to find Cloud resources that were updated
664
+ # after "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of "2021-01-
665
+ # 01 00:00:00 UTC" in seconds. * `Important` to find Cloud resources that
666
+ # contain "Important" as a word in any of the searchable fields. * `Impor*` to
667
+ # find Cloud resources that contain "Impor" as a prefix of any word in any of
668
+ # the searchable fields. * `Important location:(us-west1 OR global)` to find
669
+ # Cloud resources that contain "Important" as a word in any of the searchable
670
+ # fields and are also located in the "us-west1" region or the "global" location.
663
671
  # @param [String] fields
664
672
  # Selector specifying which fields to include in a partial response.
665
673
  # @param [String] quota_user
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudasset_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.6.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.13
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Asset API V1