google-cloud-asset 0.1.1 → 0.1.2

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: 48dcce7136478911a85e8547bdffee0436697c445d62dfd7ff1d36a5b1a047d9
4
- data.tar.gz: 366f7503aaedb00ed80b359d6363cc65a2099d7c8519878eeb6a907dea6548d2
3
+ metadata.gz: 131f4e3b99876f0dcc9c2e50170fbed12807a8708698291fae64475fce3d61a6
4
+ data.tar.gz: d14bfb95f02c0eae45262695363ad716f2a658585ab849ec21205041be538ae0
5
5
  SHA512:
6
- metadata.gz: d3ce8da5ee52ac4c2b978f6cd4f682c3b654a305134ccf784d9f72a6be128f476f8d942f7349ebd7c8a4be7fee569fe2759fbc67da633ed324524cd3bdf35a99
7
- data.tar.gz: fda27186d273637be46dab5f3da1a5782a05330a30a718d81c971d39108a2c7bd1e42ba22ae4df0495ddc6cfbda744eef7d6e3789d673798665bdd31709f50c9
6
+ metadata.gz: 022c28f49005b021f847fdf021f37a5fa86de90cbb7a6296254da0127388f429c27f2979903cdba7008943f46cd8817637eec96546b601058ba8b18dd9beed30
7
+ data.tar.gz: e9984641139190ab078cc0b0a0984f0913d070572822c51ec37388949de4ed206d4a15ff34df112cabe9bd40b51284ab4bff184bd4011da98b70aede8c3cb83e
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -211,25 +211,29 @@ module Google
211
211
  # to keep track of the export.
212
212
  #
213
213
  # @param parent [String]
214
- # Required. The relative name of the root asset. This can only be an organization
215
- # number (such as "organizations/123"), a project ID (such as
216
- # "projects/my-project-id"), or a project number (such as "projects/12345").
214
+ # Required. The relative name of the root asset. This can only be an
215
+ # organization number (such as "organizations/123"), a project ID (such as
216
+ # "projects/my-project-id"), a project number (such as "projects/12345"), or
217
+ # a folder number (such as "folders/123").
217
218
  # @param output_config [Google::Cloud::Asset::V1beta1::OutputConfig | Hash]
218
219
  # Required. Output configuration indicating where the results will be output
219
220
  # to. All results will be in newline delimited JSON format.
220
221
  # A hash of the same form as `Google::Cloud::Asset::V1beta1::OutputConfig`
221
222
  # can also be provided.
222
223
  # @param read_time [Google::Protobuf::Timestamp | Hash]
223
- # Timestamp to take an asset snapshot. This can only be set to a timestamp in
224
- # the past or of the current time. If not specified, the current time will be
225
- # used. Due to delays in resource data collection and indexing, there is a
226
- # volatile window during which running the same query may get different
227
- # results.
224
+ # Timestamp to take an asset snapshot. This can only be set to a timestamp
225
+ # between 2018-10-02 UTC (inclusive) and the current time. If not specified,
226
+ # the current time will be used. Due to delays in resource data collection
227
+ # and indexing, there is a volatile window during which running the same
228
+ # query may get different results.
228
229
  # A hash of the same form as `Google::Protobuf::Timestamp`
229
230
  # can also be provided.
230
231
  # @param asset_types [Array<String>]
231
232
  # A list of asset types of which to take a snapshot for. For example:
232
- # "google.compute.disk". If specified, only matching assets will be returned.
233
+ # "google.compute.Disk". If specified, only matching assets will be returned.
234
+ # See [Introduction to Cloud Asset
235
+ # Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
236
+ # for all supported asset types.
233
237
  # @param content_type [Google::Cloud::Asset::V1beta1::ContentType]
234
238
  # Asset content type. If not specified, no content but the asset name will be
235
239
  # returned.
@@ -313,9 +317,12 @@ module Google
313
317
  # @param content_type [Google::Cloud::Asset::V1beta1::ContentType]
314
318
  # Required. The content type.
315
319
  # @param read_time_window [Google::Cloud::Asset::V1beta1::TimeWindow | Hash]
316
- # Required. The time window for the asset history. The start time is
317
- # required. The returned results contain all temporal assets whose time
318
- # window overlap with read_time_window.
320
+ # Optional. The time window for the asset history. Both start_time and
321
+ # end_time are optional and if set, it must be after 2018-10-02 UTC. If
322
+ # end_time is not set, it is default to current timestamp. If start_time is
323
+ # not set, the snapshot of the assets at end_time will be returned. The
324
+ # returned results contain all temporal assets whose time window overlap with
325
+ # read_time_window.
319
326
  # A hash of the same form as `Google::Cloud::Asset::V1beta1::TimeWindow`
320
327
  # can also be provided.
321
328
  # @param asset_names [Array<String>]
@@ -35,7 +35,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
35
35
  end
36
36
  end
37
37
  add_message "google.cloud.asset.v1beta1.GcsDestination" do
38
- optional :uri, :string, 1
38
+ oneof :object_uri do
39
+ optional :uri, :string, 1
40
+ end
39
41
  end
40
42
  add_enum "google.cloud.asset.v1beta1.ContentType" do
41
43
  value :CONTENT_TYPE_UNSPECIFIED, 0
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -20,20 +20,24 @@ module Google
20
20
  # Export asset request.
21
21
  # @!attribute [rw] parent
22
22
  # @return [String]
23
- # Required. The relative name of the root asset. This can only be an organization
24
- # number (such as "organizations/123"), a project ID (such as
25
- # "projects/my-project-id"), or a project number (such as "projects/12345").
23
+ # Required. The relative name of the root asset. This can only be an
24
+ # organization number (such as "organizations/123"), a project ID (such as
25
+ # "projects/my-project-id"), a project number (such as "projects/12345"), or
26
+ # a folder number (such as "folders/123").
26
27
  # @!attribute [rw] read_time
27
28
  # @return [Google::Protobuf::Timestamp]
28
- # Timestamp to take an asset snapshot. This can only be set to a timestamp in
29
- # the past or of the current time. If not specified, the current time will be
30
- # used. Due to delays in resource data collection and indexing, there is a
31
- # volatile window during which running the same query may get different
32
- # results.
29
+ # Timestamp to take an asset snapshot. This can only be set to a timestamp
30
+ # between 2018-10-02 UTC (inclusive) and the current time. If not specified,
31
+ # the current time will be used. Due to delays in resource data collection
32
+ # and indexing, there is a volatile window during which running the same
33
+ # query may get different results.
33
34
  # @!attribute [rw] asset_types
34
35
  # @return [Array<String>]
35
36
  # A list of asset types of which to take a snapshot for. For example:
36
- # "google.compute.disk". If specified, only matching assets will be returned.
37
+ # "google.compute.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)
40
+ # for all supported asset types.
37
41
  # @!attribute [rw] content_type
38
42
  # @return [Google::Cloud::Asset::V1beta1::ContentType]
39
43
  # Asset content type. If not specified, no content but the asset name will be
@@ -76,9 +80,12 @@ module Google
76
80
  # Required. The content type.
77
81
  # @!attribute [rw] read_time_window
78
82
  # @return [Google::Cloud::Asset::V1beta1::TimeWindow]
79
- # Required. The time window for the asset history. The start time is
80
- # required. The returned results contain all temporal assets whose time
81
- # window overlap with read_time_window.
83
+ # Optional. The time window for the asset history. Both start_time and
84
+ # end_time are optional and if set, it must be after 2018-10-02 UTC. If
85
+ # end_time is not set, it is default to current timestamp. If start_time is
86
+ # not set, the snapshot of the assets at end_time will be returned. The
87
+ # returned results contain all temporal assets whose time window overlap with
88
+ # read_time_window.
82
89
  class BatchGetAssetsHistoryRequest; end
83
90
 
84
91
  # Batch get assets history response.
@@ -96,8 +103,10 @@ module Google
96
103
  # A Cloud Storage location.
97
104
  # @!attribute [rw] uri
98
105
  # @return [String]
99
- # The path of the Cloud Storage objects. It's the same path that is used by
100
- # gsutil. For example: "gs://bucket_name/object_path". See [Viewing and Editing Object Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
106
+ # The uri of the Cloud Storage object. It's the same uri that is used by
107
+ # gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
108
+ # Editing Object
109
+ # Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
101
110
  # for more information.
102
111
  class GcsDestination; end
103
112
 
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -30,13 +30,13 @@ module Google
30
30
  # Asset.
31
31
  class TemporalAsset; end
32
32
 
33
- # A time window of [start_time, end_time).
33
+ # A time window of (start_time, end_time].
34
34
  # @!attribute [rw] start_time
35
35
  # @return [Google::Protobuf::Timestamp]
36
- # Start time of the time window (inclusive).
36
+ # Start time of the time window (exclusive).
37
37
  # @!attribute [rw] end_time
38
38
  # @return [Google::Protobuf::Timestamp]
39
- # End time of the time window (exclusive).
39
+ # End time of the time window (inclusive).
40
40
  # Current timestamp if not specified.
41
41
  class TimeWindow; end
42
42
 
@@ -49,7 +49,7 @@ module Google
49
49
  # for more information.
50
50
  # @!attribute [rw] asset_type
51
51
  # @return [String]
52
- # Type of the asset. Example: "google.compute.disk".
52
+ # Type of the asset. Example: "google.compute.Disk".
53
53
  # @!attribute [rw] resource
54
54
  # @return [Google::Cloud::Asset::V1beta1::Resource]
55
55
  # Representation of the resource.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -99,30 +99,6 @@ module Google
99
99
  # * `domain:{domain}`: A Google Apps domain name that represents all the
100
100
  # users of that domain. For example, `google.com` or `example.com`.
101
101
  class Binding; end
102
-
103
- # The difference delta between two policies.
104
- # @!attribute [rw] binding_deltas
105
- # @return [Array<Google::Iam::V1::BindingDelta>]
106
- # The delta for Bindings between two policies.
107
- class PolicyDelta; end
108
-
109
- # One delta entry for Binding. Each individual change (only one member in each
110
- # entry) to a binding will be a separate entry.
111
- # @!attribute [rw] action
112
- # @return [Google::Iam::V1::BindingDelta::Action]
113
- # The action that was performed on a Binding.
114
- # Required
115
- # @!attribute [rw] role
116
- # @return [String]
117
- # Role that is assigned to `members`.
118
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
119
- # Required
120
- # @!attribute [rw] member
121
- # @return [String]
122
- # A single identity requesting access for a Cloud Platform resource.
123
- # Follows the same format of Binding.members.
124
- # Required
125
- class BindingDelta; end
126
102
  end
127
103
  end
128
104
  end
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -47,47 +47,5 @@ module Google
47
47
  # is `TakeSnapshot()`, the inferred response type is
48
48
  # `TakeSnapshotResponse`.
49
49
  class Operation; end
50
-
51
- # The request message for {Google::Longrunning::Operations::GetOperation Operations::GetOperation}.
52
- # @!attribute [rw] name
53
- # @return [String]
54
- # The name of the operation resource.
55
- class GetOperationRequest; end
56
-
57
- # The request message for {Google::Longrunning::Operations::ListOperations Operations::ListOperations}.
58
- # @!attribute [rw] name
59
- # @return [String]
60
- # The name of the operation collection.
61
- # @!attribute [rw] filter
62
- # @return [String]
63
- # The standard list filter.
64
- # @!attribute [rw] page_size
65
- # @return [Integer]
66
- # The standard list page size.
67
- # @!attribute [rw] page_token
68
- # @return [String]
69
- # The standard list page token.
70
- class ListOperationsRequest; end
71
-
72
- # The response message for {Google::Longrunning::Operations::ListOperations Operations::ListOperations}.
73
- # @!attribute [rw] operations
74
- # @return [Array<Google::Longrunning::Operation>]
75
- # A list of operations that matches the specified filter in the request.
76
- # @!attribute [rw] next_page_token
77
- # @return [String]
78
- # The standard List next-page token.
79
- class ListOperationsResponse; end
80
-
81
- # The request message for {Google::Longrunning::Operations::CancelOperation Operations::CancelOperation}.
82
- # @!attribute [rw] name
83
- # @return [String]
84
- # The name of the operation resource to be cancelled.
85
- class CancelOperationRequest; end
86
-
87
- # The request message for {Google::Longrunning::Operations::DeleteOperation Operations::DeleteOperation}.
88
- # @!attribute [rw] name
89
- # @return [String]
90
- # The name of the operation resource to be deleted.
91
- class DeleteOperationRequest; end
92
50
  end
93
51
  end
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-19 00:00:00.000000000 Z
11
+ date: 2019-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.59.2
75
+ version: 0.61.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.59.2
82
+ version: 0.61.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement