Class: Google::Apis::PolicysimulatorV1alpha::PolicySimulatorService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::PolicysimulatorV1alpha::PolicySimulatorService
- Defined in:
- lib/google/apis/policysimulator_v1alpha/service.rb
Overview
Policy Simulator API
Policy Simulator is a collection of endpoints for creating, running, and
viewing a Replay. A Replay is a type of simulation that lets you see how
your members' access to resources might change if you changed your IAM policy.
During a Replay, Policy Simulator re-evaluates, or replays, past access
attempts under both the current policy and your proposed policy, and compares
those results to determine how your members' access might change under the
proposed policy.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#create_folder_location_replay(parent, google_cloud_policysimulator_v1alpha_replay_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Creates and starts a Replay using the given ReplayConfig.
-
#create_organization_location_replay(parent, google_cloud_policysimulator_v1alpha_replay_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Creates and starts a Replay using the given ReplayConfig.
-
#create_project_location_replay(parent, google_cloud_policysimulator_v1alpha_replay_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Creates and starts a Replay using the given ReplayConfig.
-
#get_folder_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#get_folder_location_replay(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay
Gets the specified Replay.
-
#get_folder_location_replay_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#get_organization_location_org_policy_violations_preview(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview.
-
#get_organization_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#get_organization_location_replay(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay
Gets the specified Replay.
-
#get_organization_location_replay_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#get_project_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#get_project_location_replay(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay
Gets the specified Replay.
-
#get_project_location_replay_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#initialize ⇒ PolicySimulatorService
constructor
A new instance of PolicySimulatorService.
-
#list_folder_location_replay_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_folder_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse
Lists the results of running a Replay.
-
#list_folder_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplaysResponse
Lists each Replay in a project, folder, or organization.
-
#list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_organization_location_org_policy_violations_preview_org_policy_violations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsResponse
ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an OrgPolicyViolationsPreview.
-
#list_organization_location_org_policy_violations_previews(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsPreviewsResponse
ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization.
-
#list_organization_location_replay_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_organization_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse
Lists the results of running a Replay.
-
#list_organization_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplaysResponse
Lists each Replay in a project, folder, or organization.
-
#list_project_location_replay_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse
Lists the results of running a Replay.
-
#list_project_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplaysResponse
Lists each Replay in a project, folder, or organization.
-
#org_organization_location_policy_violations_previews(parent, google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for the proposed changes in the provided OrgPolicyViolationsPreview.
Constructor Details
#initialize ⇒ PolicySimulatorService
Returns a new instance of PolicySimulatorService.
51 52 53 54 55 56 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 51 def initialize super('https://policysimulator.googleapis.com/', '', client_name: 'google-apis-policysimulator_v1alpha', client_version: Google::Apis::PolicysimulatorV1alpha::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
44 45 46 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 44 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
49 50 51 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 49 def quota_user @quota_user end |
Instance Method Details
#create_folder_location_replay(parent, google_cloud_policysimulator_v1alpha_replay_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Creates and starts a Replay using the given ReplayConfig.
112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 112 def create_folder_location_replay(parent, google_cloud_policysimulator_v1alpha_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}/replays', ) command.request_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay::Representation command.request_object = google_cloud_policysimulator_v1alpha_replay_object command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_organization_location_replay(parent, google_cloud_policysimulator_v1alpha_replay_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Creates and starts a Replay using the given ReplayConfig.
598 599 600 601 602 603 604 605 606 607 608 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 598 def create_organization_location_replay(parent, google_cloud_policysimulator_v1alpha_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}/replays', ) command.request_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay::Representation command.request_object = google_cloud_policysimulator_v1alpha_replay_object command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_replay(parent, google_cloud_policysimulator_v1alpha_replay_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Creates and starts a Replay using the given ReplayConfig.
859 860 861 862 863 864 865 866 867 868 869 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 859 def create_project_location_replay(parent, google_cloud_policysimulator_v1alpha_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}/replays', ) command.request_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay::Representation command.request_object = google_cloud_policysimulator_v1alpha_replay_object command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_folder_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
79 80 81 82 83 84 85 86 87 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 79 def get_folder_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_folder_location_replay(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay
Gets the specified Replay. Each Replay is available for at least 7 days.
148 149 150 151 152 153 154 155 156 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 148 def get_folder_location_replay(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_folder_location_replay_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
226 227 228 229 230 231 232 233 234 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 226 def get_folder_location_replay_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
340 341 342 343 344 345 346 347 348 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 340 def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_organization_location_org_policy_violations_preview(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview. Each OrgPolicyViolationsPreview is available for at least 7 days.
449 450 451 452 453 454 455 456 457 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 449 def get_organization_location_org_policy_violations_preview(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_organization_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
522 523 524 525 526 527 528 529 530 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 522 def get_organization_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_organization_location_replay(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay
Gets the specified Replay. Each Replay is available for at least 7 days.
634 635 636 637 638 639 640 641 642 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 634 def get_organization_location_replay(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_organization_location_replay_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
712 713 714 715 716 717 718 719 720 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 712 def get_organization_location_replay_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
826 827 828 829 830 831 832 833 834 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 826 def get_project_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_replay(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay
Gets the specified Replay. Each Replay is available for at least 7 days.
895 896 897 898 899 900 901 902 903 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 895 def get_project_location_replay(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplay command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_replay_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
973 974 975 976 977 978 979 980 981 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 973 def get_project_location_replay_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_folder_location_replay_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED.
263 264 265 266 267 268 269 270 271 272 273 274 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 263 def list_folder_location_replay_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_folder_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse
Lists the results of running a Replay.
307 308 309 310 311 312 313 314 315 316 317 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 307 def list_folder_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/results', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_folder_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplaysResponse
Lists each Replay in a project, folder, or organization. Each Replay is
available for at least 7 days.
193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 193 def list_folder_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/replays', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplaysResponse::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplaysResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED.
377 378 379 380 381 382 383 384 385 386 387 388 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 377 def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_organization_location_org_policy_violations_preview_org_policy_violations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsResponse
ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an OrgPolicyViolationsPreview.
563 564 565 566 567 568 569 570 571 572 573 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 563 def list_organization_location_org_policy_violations_preview_org_policy_violations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/orgPolicyViolations', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsResponse::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_organization_location_org_policy_violations_previews(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsPreviewsResponse
ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization. Each OrgPolicyViolationsPreview is available for at least 7 days.
489 490 491 492 493 494 495 496 497 498 499 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 489 def list_organization_location_org_policy_violations_previews(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/orgPolicyViolationsPreviews', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsPreviewsResponse::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsPreviewsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_organization_location_replay_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED.
749 750 751 752 753 754 755 756 757 758 759 760 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 749 def list_organization_location_replay_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_organization_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse
Lists the results of running a Replay.
793 794 795 796 797 798 799 800 801 802 803 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 793 def list_organization_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/results', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_organization_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplaysResponse
Lists each Replay in a project, folder, or organization. Each Replay is
available for at least 7 days.
679 680 681 682 683 684 685 686 687 688 689 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 679 def list_organization_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/replays', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplaysResponse::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplaysResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_replay_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED.
1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 1010 def list_project_location_replay_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse
Lists the results of running a Replay.
1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 1054 def list_project_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/results', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplaysResponse
Lists each Replay in a project, folder, or organization. Each Replay is
available for at least 7 days.
940 941 942 943 944 945 946 947 948 949 950 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 940 def list_project_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/replays', ) command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplaysResponse::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListReplaysResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#org_organization_location_policy_violations_previews(parent, google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for
the proposed changes in the provided OrgPolicyViolationsPreview.
OrgPolicyOverlay. The changes to OrgPolicy are specified by this
OrgPolicyOverlay. The resources to scan are inferred from these specified
changes.
416 417 418 419 420 421 422 423 424 425 426 |
# File 'lib/google/apis/policysimulator_v1alpha/service.rb', line 416 def org_organization_location_policy_violations_previews(parent, google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}/orgPolicyViolationsPreviews', ) command.request_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview::Representation command.request_object = google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |