google-apis-policyanalyzer_v1 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9307de1f44971b84e963c7003f873496b959c6d8e57e1fef850126326204b498
4
- data.tar.gz: cea3fae962052570c2f78039dd6cad074dc568d775fccfc94ca029b28c775e48
3
+ metadata.gz: f6c13274001ca183ccdd752ff3fdeb90d8f2f8d0d4b2f85ddec6fb64c1d2942e
4
+ data.tar.gz: 7523cb43e7cbfdd2e7311774f4c9161038abfbdbaedbc84eb1fd5d2d1b4d2fe4
5
5
  SHA512:
6
- metadata.gz: d953a63295923f38a48ade2863565475b682ab16f09132ccc31eb196ce3a4e71faafa91442bf69fde9bb8119d66ed67025815fb1167554babdc8e6f4c306be2e
7
- data.tar.gz: 5535362a924a89a3eb5cbbe6246e0d63d8c0275e1d524922cda5102a4d0dbabbbac17154b22c7d2236e1adcb637712daa2060d5024a64b359f8897a37634ae41
6
+ metadata.gz: '0382393896eb27a9dd74541c9d4bae8eeddbff2015c80ac29e4781bede48d645cc97409dcca00176f9b959fc59f5ed122466c3452b1a99bb99721e9db8ee7421'
7
+ data.tar.gz: e4e4b0e328a629e07d0c29dd3f9443d19f3a3587e97abf6ad4b6122c42cc542b4340c2bc32251e93fca9dfde5202d61fc9401269d546ddbebb0b871e06478824
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-policyanalyzer_v1
2
2
 
3
+ ### v0.16.0 (2025-05-04)
4
+
5
+ * Regenerated using generator version 0.17.0
6
+
7
+ ### v0.15.0 (2024-06-09)
8
+
9
+ * Regenerated from discovery document revision 20240602
10
+
3
11
  ### v0.14.0 (2024-05-19)
4
12
 
5
13
  * Regenerated using generator version 0.15.0
data/OVERVIEW.md CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://www.google.com) may provide guidance regardi
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.7+.
86
+ This library is supported on Ruby 3.1+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
@@ -22,7 +22,7 @@ module Google
22
22
  module Apis
23
23
  module PolicyanalyzerV1
24
24
 
25
- #
25
+ # Represents Activity on a GCP resource over specific observation period.
26
26
  class GoogleCloudPolicyanalyzerV1Activity
27
27
  include Google::Apis::Core::Hashable
28
28
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PolicyanalyzerV1
18
18
  # Version of the google-apis-policyanalyzer_v1 gem
19
- GEM_VERSION = "0.14.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.17.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210910"
25
+ REVISION = "20240602"
26
26
  end
27
27
  end
28
28
  end
@@ -51,6 +51,114 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Queries policy activities on Google Cloud resources.
55
+ # @param [String] parent
56
+ # Required. The container resource on which to execute the request. Acceptable
57
+ # formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/
58
+ # activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google Cloud Locations:
59
+ # https://cloud.google.com/about/locations/
60
+ # @param [String] filter
61
+ # Optional. Filter expression to restrict the activities returned. For
62
+ # serviceAccountLastAuthentication activities, supported filters are: - `
63
+ # activities.full_resource_name `=` [STRING]` - `activities.fullResourceName `=`
64
+ # [STRING]` where `[STRING]` is the full resource name of the service account.
65
+ # For serviceAccountKeyLastAuthentication activities, supported filters are: - `
66
+ # activities.full_resource_name `=` [STRING]` - `activities.fullResourceName `=`
67
+ # [STRING]` where `[STRING]` is the full resource name of the service account
68
+ # key.
69
+ # @param [Fixnum] page_size
70
+ # Optional. The maximum number of results to return from this request. Max limit
71
+ # is 1000. Non-positive values are ignored. The presence of `nextPageToken` in
72
+ # the response indicates that more results might be available.
73
+ # @param [String] page_token
74
+ # Optional. If present, then retrieve the next batch of results from the
75
+ # preceding call to this method. `pageToken` must be the value of `nextPageToken`
76
+ # from the previous response. The values of other method parameters should be
77
+ # identical to those in the previous call.
78
+ # @param [String] fields
79
+ # Selector specifying which fields to include in a partial response.
80
+ # @param [String] quota_user
81
+ # Available to use for quota purposes for server-side applications. Can be any
82
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
83
+ # @param [Google::Apis::RequestOptions] options
84
+ # Request-specific options
85
+ #
86
+ # @yield [result, err] Result & error if block supplied
87
+ # @yieldparam result [Google::Apis::PolicyanalyzerV1::GoogleCloudPolicyanalyzerV1QueryActivityResponse] parsed result object
88
+ # @yieldparam err [StandardError] error object if request failed
89
+ #
90
+ # @return [Google::Apis::PolicyanalyzerV1::GoogleCloudPolicyanalyzerV1QueryActivityResponse]
91
+ #
92
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
93
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
94
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
95
+ def query_folder_location_activity_type_activity(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
96
+ command = make_simple_command(:get, 'v1/{+parent}/activities:query', options)
97
+ command.response_representation = Google::Apis::PolicyanalyzerV1::GoogleCloudPolicyanalyzerV1QueryActivityResponse::Representation
98
+ command.response_class = Google::Apis::PolicyanalyzerV1::GoogleCloudPolicyanalyzerV1QueryActivityResponse
99
+ command.params['parent'] = parent unless parent.nil?
100
+ command.query['filter'] = filter unless filter.nil?
101
+ command.query['pageSize'] = page_size unless page_size.nil?
102
+ command.query['pageToken'] = page_token unless page_token.nil?
103
+ command.query['fields'] = fields unless fields.nil?
104
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
105
+ execute_or_queue_command(command, &block)
106
+ end
107
+
108
+ # Queries policy activities on Google Cloud resources.
109
+ # @param [String] parent
110
+ # Required. The container resource on which to execute the request. Acceptable
111
+ # formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/
112
+ # activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google Cloud Locations:
113
+ # https://cloud.google.com/about/locations/
114
+ # @param [String] filter
115
+ # Optional. Filter expression to restrict the activities returned. For
116
+ # serviceAccountLastAuthentication activities, supported filters are: - `
117
+ # activities.full_resource_name `=` [STRING]` - `activities.fullResourceName `=`
118
+ # [STRING]` where `[STRING]` is the full resource name of the service account.
119
+ # For serviceAccountKeyLastAuthentication activities, supported filters are: - `
120
+ # activities.full_resource_name `=` [STRING]` - `activities.fullResourceName `=`
121
+ # [STRING]` where `[STRING]` is the full resource name of the service account
122
+ # key.
123
+ # @param [Fixnum] page_size
124
+ # Optional. The maximum number of results to return from this request. Max limit
125
+ # is 1000. Non-positive values are ignored. The presence of `nextPageToken` in
126
+ # the response indicates that more results might be available.
127
+ # @param [String] page_token
128
+ # Optional. If present, then retrieve the next batch of results from the
129
+ # preceding call to this method. `pageToken` must be the value of `nextPageToken`
130
+ # from the previous response. The values of other method parameters should be
131
+ # identical to those in the previous call.
132
+ # @param [String] fields
133
+ # Selector specifying which fields to include in a partial response.
134
+ # @param [String] quota_user
135
+ # Available to use for quota purposes for server-side applications. Can be any
136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
137
+ # @param [Google::Apis::RequestOptions] options
138
+ # Request-specific options
139
+ #
140
+ # @yield [result, err] Result & error if block supplied
141
+ # @yieldparam result [Google::Apis::PolicyanalyzerV1::GoogleCloudPolicyanalyzerV1QueryActivityResponse] parsed result object
142
+ # @yieldparam err [StandardError] error object if request failed
143
+ #
144
+ # @return [Google::Apis::PolicyanalyzerV1::GoogleCloudPolicyanalyzerV1QueryActivityResponse]
145
+ #
146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
149
+ def query_organization_location_activity_type_activity(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
150
+ command = make_simple_command(:get, 'v1/{+parent}/activities:query', options)
151
+ command.response_representation = Google::Apis::PolicyanalyzerV1::GoogleCloudPolicyanalyzerV1QueryActivityResponse::Representation
152
+ command.response_class = Google::Apis::PolicyanalyzerV1::GoogleCloudPolicyanalyzerV1QueryActivityResponse
153
+ command.params['parent'] = parent unless parent.nil?
154
+ command.query['filter'] = filter unless filter.nil?
155
+ command.query['pageSize'] = page_size unless page_size.nil?
156
+ command.query['pageToken'] = page_token unless page_token.nil?
157
+ command.query['fields'] = fields unless fields.nil?
158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
159
+ execute_or_queue_command(command, &block)
160
+ end
161
+
54
162
  # Queries policy activities on Google Cloud resources.
55
163
  # @param [String] parent
56
164
  # Required. The container resource on which to execute the request. Acceptable
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-policyanalyzer_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-05-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policyanalyzer_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-policyanalyzer_v1/v0.14.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-policyanalyzer_v1/v0.16.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policyanalyzer_v1
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -68,15 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
66
  requirements:
69
67
  - - ">="
70
68
  - !ruby/object:Gem::Version
71
- version: '2.7'
69
+ version: '3.1'
72
70
  required_rubygems_version: !ruby/object:Gem::Requirement
73
71
  requirements:
74
72
  - - ">="
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.6
79
- signing_key:
76
+ rubygems_version: 3.6.8
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Policy Analyzer API V1
82
79
  test_files: []