google-cloud-asset 0.3.3 → 0.4.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: b2144fcc14fb4a09906818ab6ca1e129c0b787a1194cca8b8427d1028e793957
4
- data.tar.gz: 1e91ef9349385ee4d7b13cfe5075222369bce0e449bec16eb7c267e45275f205
3
+ metadata.gz: 6938c356069a8d27335a11f7cbf4e19d74865c14c62e108f0d6954be30f4394e
4
+ data.tar.gz: b1b8d9092f6a227af5fe9bac637b8ce467e48097cfc89a8f41b61600e37b8f89
5
5
  SHA512:
6
- metadata.gz: 7da9b3eabcd9c7fc035008ac4e48b15836ab01c220be7239c463abb80c9f3656d0db73a790988c9d4b68c3c3e0b3df16903db3c0a7794cadf868b1d60aa8cf6d
7
- data.tar.gz: e889fe53cf00a28d01699c2f3e3e0bce4b6000fcac1059e41e0e29866597f6412402f3c79f060543c0b96a1c7e42266c4c98c63d6e65856b0f5379c47be2ef4c
6
+ metadata.gz: 63d36cb45ec6ea23b4d567f4c41ecca924c45b4b4ce04a9b639f634e4020599f71109847dc5f13ed51581e9e508ad4d3855ee293d89fc380ff4603cbe1bf5883
7
+ data.tar.gz: fae4463f7f7092a27dd44284f32fdc981ba29f8ed12902ba6f4f3b56fdc1105f1e315b3d2713709cf35fde00f33810de9bf5dc14d577b9f99860d1a053b85dee
@@ -246,9 +246,9 @@ module Google
246
246
  # can also be provided.
247
247
  # @param asset_types [Array<String>]
248
248
  # A list of asset types of which to take a snapshot for. For example:
249
- # "compute.googleapis.com/Disk". If specified, only matching assets will be returned.
250
- # See [Introduction to Cloud Asset
251
- # Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
249
+ # "compute.googleapis.com/Disk". If specified, only matching assets will be
250
+ # returned. See [Introduction to Cloud Asset
251
+ # Inventory](https://cloud.google.com/resource-manager-inventory/docs/overview)
252
252
  # for all supported asset types.
253
253
  # @param content_type [Google::Cloud::Asset::V1::ContentType]
254
254
  # Asset content type. If not specified, no content but the asset name will be
@@ -335,7 +335,7 @@ module Google
335
335
  # organization number (such as "organizations/123"), a project ID (such as
336
336
  # "projects/my-project-id")", or a project number (such as "projects/12345").
337
337
  # @param content_type [Google::Cloud::Asset::V1::ContentType]
338
- # Required. The content type.
338
+ # Optional. The content type.
339
339
  # @param read_time_window [Google::Cloud::Asset::V1::TimeWindow | Hash]
340
340
  # Optional. The time window for the asset history. Both start_time and
341
341
  # end_time are optional and if set, it must be after 2018-10-02 UTC. If
@@ -350,7 +350,8 @@ module Google
350
350
  # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
351
351
  # See [Resource
352
352
  # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
353
- # and [Resource Name Format](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/resource-name-format)
353
+ # and [Resource Name
354
+ # Format](https://cloud.google.com/resource-manager-inventory/docs/resource-name-format)
354
355
  # for more info.
355
356
  #
356
357
  # The request becomes a no-op if the asset name list is empty, and the max
@@ -5,8 +5,13 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
8
11
  require 'google/cloud/asset/v1/assets_pb'
9
12
  require 'google/longrunning/operations_pb'
13
+ require 'google/protobuf/empty_pb'
14
+ require 'google/protobuf/field_mask_pb'
10
15
  require 'google/protobuf/timestamp_pb'
11
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
17
  add_message "google.cloud.asset.v1.ExportAssetsRequest" do
@@ -32,17 +37,26 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
32
37
  add_message "google.cloud.asset.v1.OutputConfig" do
33
38
  oneof :destination do
34
39
  optional :gcs_destination, :message, 1, "google.cloud.asset.v1.GcsDestination"
40
+ optional :bigquery_destination, :message, 2, "google.cloud.asset.v1.BigQueryDestination"
35
41
  end
36
42
  end
37
43
  add_message "google.cloud.asset.v1.GcsDestination" do
38
44
  oneof :object_uri do
39
45
  optional :uri, :string, 1
46
+ optional :uri_prefix, :string, 2
40
47
  end
41
48
  end
49
+ add_message "google.cloud.asset.v1.BigQueryDestination" do
50
+ optional :dataset, :string, 1
51
+ optional :table, :string, 2
52
+ optional :force, :bool, 3
53
+ end
42
54
  add_enum "google.cloud.asset.v1.ContentType" do
43
55
  value :CONTENT_TYPE_UNSPECIFIED, 0
44
56
  value :RESOURCE, 1
45
57
  value :IAM_POLICY, 2
58
+ value :ORG_POLICY, 4
59
+ value :ACCESS_POLICY, 5
46
60
  end
47
61
  end
48
62
 
@@ -56,6 +70,7 @@ module Google
56
70
  BatchGetAssetsHistoryResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.BatchGetAssetsHistoryResponse").msgclass
57
71
  OutputConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.OutputConfig").msgclass
58
72
  GcsDestination = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.GcsDestination").msgclass
73
+ BigQueryDestination = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.BigQueryDestination").msgclass
59
74
  ContentType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.ContentType").enummodule
60
75
  end
61
76
  end
@@ -5,6 +5,7 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/resource_pb'
8
9
  require 'google/iam/v1/policy_pb'
9
10
  require 'google/protobuf/any_pb'
10
11
  require 'google/protobuf/struct_pb'
@@ -34,9 +34,9 @@ module Google
34
34
  # @!attribute [rw] asset_types
35
35
  # @return [Array<String>]
36
36
  # A list of asset types of which to take a snapshot for. For example:
37
- # "compute.googleapis.com/Disk". If specified, only matching assets will be returned.
38
- # See [Introduction to Cloud Asset
39
- # Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
37
+ # "compute.googleapis.com/Disk". If specified, only matching assets will be
38
+ # returned. See [Introduction to Cloud Asset
39
+ # Inventory](https://cloud.google.com/resource-manager-inventory/docs/overview)
40
40
  # for all supported asset types.
41
41
  # @!attribute [rw] content_type
42
42
  # @return [Google::Cloud::Asset::V1::ContentType]
@@ -72,14 +72,15 @@ module Google
72
72
  # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
73
73
  # See [Resource
74
74
  # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
75
- # and [Resource Name Format](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/resource-name-format)
75
+ # and [Resource Name
76
+ # Format](https://cloud.google.com/resource-manager-inventory/docs/resource-name-format)
76
77
  # for more info.
77
78
  #
78
79
  # The request becomes a no-op if the asset name list is empty, and the max
79
80
  # size of the asset name list is 100 in one request.
80
81
  # @!attribute [rw] content_type
81
82
  # @return [Google::Cloud::Asset::V1::ContentType]
82
- # Required. The content type.
83
+ # Optional. The content type.
83
84
  # @!attribute [rw] read_time_window
84
85
  # @return [Google::Cloud::Asset::V1::TimeWindow]
85
86
  # Optional. The time window for the asset history. Both start_time and
@@ -100,6 +101,12 @@ module Google
100
101
  # @!attribute [rw] gcs_destination
101
102
  # @return [Google::Cloud::Asset::V1::GcsDestination]
102
103
  # Destination on Cloud Storage.
104
+ # @!attribute [rw] bigquery_destination
105
+ # @return [Google::Cloud::Asset::V1::BigQueryDestination]
106
+ # Destination on BigQuery. The output table stores the fields in asset
107
+ # proto as columns in BigQuery. The resource/iam_policy field is converted
108
+ # to a record with each field to a column, except metadata to a single JSON
109
+ # string.
103
110
  class OutputConfig; end
104
111
 
105
112
  # A Cloud Storage location.
@@ -110,8 +117,39 @@ module Google
110
117
  # Editing Object
111
118
  # Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
112
119
  # for more information.
120
+ # @!attribute [rw] uri_prefix
121
+ # @return [String]
122
+ # The uri prefix of all generated Cloud Storage objects. For example:
123
+ # "gs://bucket_name/object_name_prefix". Each object uri is in format:
124
+ # "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
125
+ # contains assets for that type. <shard number> starts from 0. For example:
126
+ # "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is
127
+ # the first shard of output objects containing all
128
+ # compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be
129
+ # returned if file with the same name "gs://bucket_name/object_name_prefix"
130
+ # already exists.
113
131
  class GcsDestination; end
114
132
 
133
+ # A BigQuery destination.
134
+ # @!attribute [rw] dataset
135
+ # @return [String]
136
+ # Required. The BigQuery dataset in format
137
+ # "projects/projectId/datasets/datasetId", to which the snapshot result
138
+ # should be exported. If this dataset does not exist, the export call returns
139
+ # an error.
140
+ # @!attribute [rw] table
141
+ # @return [String]
142
+ # Required. The BigQuery table to which the snapshot result should be
143
+ # written. If this table does not exist, a new table with the given name
144
+ # will be created.
145
+ # @!attribute [rw] force
146
+ # @return [true, false]
147
+ # If the destination table already exists and this flag is `TRUE`, the
148
+ # table will be overwritten by the contents of assets snapshot. If the flag
149
+ # is not set and the destination table already exists, the export call
150
+ # returns an error.
151
+ class BigQueryDestination; end
152
+
115
153
  # Asset content type.
116
154
  module ContentType
117
155
  # Unspecified content type.
@@ -122,6 +160,12 @@ module Google
122
160
 
123
161
  # The actual IAM policy set on a resource.
124
162
  IAM_POLICY = 2
163
+
164
+ # The Cloud Organization Policy set on an asset.
165
+ ORG_POLICY = 4
166
+
167
+ # The Cloud Access context mananger Policy set on an asset.
168
+ ACCESS_POLICY = 5
125
169
  end
126
170
  end
127
171
  end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Asset
19
- VERSION = "0.3.3".freeze
19
+ VERSION = "0.4.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-asset
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.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: 2019-10-03 00:00:00.000000000 Z
11
+ date: 2019-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0'
175
175
  requirements: []
176
- rubygems_version: 3.0.4
176
+ rubygems_version: 3.0.6
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: API Client library for Cloud Asset API