google-apis-apigee_v1 0.74.0 → 0.76.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.
@@ -1870,12 +1870,7 @@ module Google
1870
1870
 
1871
1871
  # Creates an AppGroup. Once created, user can register apps under the AppGroup
1872
1872
  # to obtain secret key and password. At creation time, the AppGroup's state is
1873
- # set as `active`. The attribute `Attribute` with key `attribute_name` as `
1874
- # __apigee_reserved__developer_details` can be used to store developers and
1875
- # their roles. The JSON format expected is: [ ` "developer_id":"", "roles":[ "" ]
1876
- # ` ] and is dealt in base64encoded format. Etag will be available in attribute
1877
- # `Attribute` with key `attribute_name` as `
1878
- # __apigee_reserved__developer_details_etag` for that AppGroup.
1873
+ # set as `active`.
1879
1874
  # @param [String] parent
1880
1875
  # Required. Name of the Apigee organization in which the AppGroup is created.
1881
1876
  # Use the following structure in your request: `organizations/`org``.
@@ -1984,8 +1979,8 @@ module Google
1984
1979
  # request: `organizations/`org``.
1985
1980
  # @param [String] filter
1986
1981
  # The filter expression to be used to get the list of AppGroups, where filtering
1987
- # can be done on name, correlationID or channelID of the app group. Example:
1988
- # filter = "name = foobar"
1982
+ # can be done on status, channelId or channelUri of the app group. Examples:
1983
+ # filter=status=active", filter=channelId=, filter=channelUri=
1989
1984
  # @param [Fixnum] page_size
1990
1985
  # Count of AppGroups a single page can have in the response. If unspecified, at
1991
1986
  # most 1000 AppGroups will be returned. The maximum value is 1000; values above
@@ -2025,14 +2020,13 @@ module Google
2025
2020
  # Updates an appGroup. This API replaces the existing appGroup details with
2026
2021
  # those specified in the request. Include or exclude any existing details that
2027
2022
  # you want to retain or delete, respectively. Note that the state of the
2028
- # AppGroup should be updated using `action`, and not via AppGroup. The custom
2029
- # attribute limit is 1000, and is how `__apigee_reserved__developer_details` can
2030
- # be updated. **Note**: OAuth access tokens and Key Management Service (KMS)
2031
- # entities (apps, developers, and API products) are cached for 180 seconds (
2032
- # current default). Any custom attributes associated with these entities are
2033
- # cached for at least 180 seconds after the entity is accessed at runtime.
2034
- # Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able to
2035
- # expire an access token in less than 180 seconds.
2023
+ # AppGroup should be updated using `action`, and not via AppGroup. **Note**:
2024
+ # OAuth access tokens and Key Management Service (KMS) entities (apps,
2025
+ # developers, and API products) are cached for 180 seconds (current default).
2026
+ # Any custom attributes associated with these entities are cached for at least
2027
+ # 180 seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn`
2028
+ # element on the OAuthV2 policy won't be able to expire an access token in less
2029
+ # than 180 seconds.
2036
2030
  # @param [String] name
2037
2031
  # Required. Name of the AppGroup. Use the following structure in your request: `
2038
2032
  # organizations/`org`/appgroups/`app_group_name``
@@ -2530,9 +2524,9 @@ module Google
2530
2524
  # @param [String] filter
2531
2525
  # Optional. The filter expression to be used to get the list of apps, where
2532
2526
  # filtering can be done on developerEmail, apiProduct, consumerKey, status,
2533
- # appId, appName and appType. Examples: "developerEmail=foo@bar.com", "appType=
2534
- # AppGroup", or "appType=Developer" "filter" is supported from ver 1.10.0 and
2535
- # above.
2527
+ # appId, appName, appType and appGroup. Examples: "developerEmail=foo@bar.com", "
2528
+ # appType=AppGroup", or "appType=Developer" "filter" is supported from ver 1.10.
2529
+ # 0 and above.
2536
2530
  # @param [String] ids
2537
2531
  # Optional. Comma-separated list of app IDs on which to filter.
2538
2532
  # @param [Boolean] include_cred
@@ -4894,6 +4888,37 @@ module Google
4894
4888
  execute_or_queue_command(command, &block)
4895
4889
  end
4896
4890
 
4891
+ # Gets the add-ons config of an environment.
4892
+ # @param [String] name
4893
+ # Required. Name of the add-ons config. Must be in the format of `/organizations/
4894
+ # `org`/environments/`env`/addonsConfig`
4895
+ # @param [String] fields
4896
+ # Selector specifying which fields to include in a partial response.
4897
+ # @param [String] quota_user
4898
+ # Available to use for quota purposes for server-side applications. Can be any
4899
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4900
+ # @param [Google::Apis::RequestOptions] options
4901
+ # Request-specific options
4902
+ #
4903
+ # @yield [result, err] Result & error if block supplied
4904
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1AddonsConfig] parsed result object
4905
+ # @yieldparam err [StandardError] error object if request failed
4906
+ #
4907
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1AddonsConfig]
4908
+ #
4909
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4910
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4911
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4912
+ def get_organization_environment_addons_config(name, fields: nil, quota_user: nil, options: nil, &block)
4913
+ command = make_simple_command(:get, 'v1/{+name}', options)
4914
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1AddonsConfig::Representation
4915
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1AddonsConfig
4916
+ command.params['name'] = name unless name.nil?
4917
+ command.query['fields'] = fields unless fields.nil?
4918
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4919
+ execute_or_queue_command(command, &block)
4920
+ end
4921
+
4897
4922
  # Gets the API Security runtime configuration for an environment. This named
4898
4923
  # ApiSecurityRuntimeConfig to prevent conflicts with ApiSecurityConfig from
4899
4924
  # addon config.
@@ -5038,6 +5063,37 @@ module Google
5038
5063
  execute_or_queue_command(command, &block)
5039
5064
  end
5040
5065
 
5066
+ # GetSecurityActionConfig returns the current SecurityActions configuration.
5067
+ # @param [String] name
5068
+ # Required. The name of the SecurityActionsConfig to retrieve. This will always
5069
+ # be: `organizations/`org`/environments/`env`/security_actions_config`
5070
+ # @param [String] fields
5071
+ # Selector specifying which fields to include in a partial response.
5072
+ # @param [String] quota_user
5073
+ # Available to use for quota purposes for server-side applications. Can be any
5074
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5075
+ # @param [Google::Apis::RequestOptions] options
5076
+ # Request-specific options
5077
+ #
5078
+ # @yield [result, err] Result & error if block supplied
5079
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityActionsConfig] parsed result object
5080
+ # @yieldparam err [StandardError] error object if request failed
5081
+ #
5082
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityActionsConfig]
5083
+ #
5084
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5085
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5086
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5087
+ def get_organization_environment_security_actions_config(name, fields: nil, quota_user: nil, options: nil, &block)
5088
+ command = make_simple_command(:get, 'v1/{+name}', options)
5089
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityActionsConfig::Representation
5090
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityActionsConfig
5091
+ command.params['name'] = name unless name.nil?
5092
+ command.query['fields'] = fields unless fields.nil?
5093
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5094
+ execute_or_queue_command(command, &block)
5095
+ end
5096
+
5041
5097
  # Get distributed trace configuration in an environment.
5042
5098
  # @param [String] name
5043
5099
  # Required. Name of the trace configuration. Use the following structure in your
@@ -5369,6 +5425,45 @@ module Google
5369
5425
  execute_or_queue_command(command, &block)
5370
5426
  end
5371
5427
 
5428
+ # UpdateSecurityActionConfig updates the current SecurityActions configuration.
5429
+ # This method is used to enable/disable the feature at the environment level.
5430
+ # @param [String] name
5431
+ # This is a singleton resource, the name will always be set by SecurityActions
5432
+ # and any user input will be ignored. The name is always: `organizations/`org`/
5433
+ # environments/`env`/security_actions_config`
5434
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityActionsConfig] google_cloud_apigee_v1_security_actions_config_object
5435
+ # @param [String] update_mask
5436
+ # The list of fields to update.
5437
+ # @param [String] fields
5438
+ # Selector specifying which fields to include in a partial response.
5439
+ # @param [String] quota_user
5440
+ # Available to use for quota purposes for server-side applications. Can be any
5441
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5442
+ # @param [Google::Apis::RequestOptions] options
5443
+ # Request-specific options
5444
+ #
5445
+ # @yield [result, err] Result & error if block supplied
5446
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityActionsConfig] parsed result object
5447
+ # @yieldparam err [StandardError] error object if request failed
5448
+ #
5449
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityActionsConfig]
5450
+ #
5451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5454
+ def update_organization_environment_security_actions_config(name, google_cloud_apigee_v1_security_actions_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
5455
+ command = make_simple_command(:patch, 'v1/{+name}', options)
5456
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityActionsConfig::Representation
5457
+ command.request_object = google_cloud_apigee_v1_security_actions_config_object
5458
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityActionsConfig::Representation
5459
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityActionsConfig
5460
+ command.params['name'] = name unless name.nil?
5461
+ command.query['updateMask'] = update_mask unless update_mask.nil?
5462
+ command.query['fields'] = fields unless fields.nil?
5463
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5464
+ execute_or_queue_command(command, &block)
5465
+ end
5466
+
5372
5467
  # Updates the trace configurations in an environment. Note that the repeated
5373
5468
  # fields have replace semantics when included in the field mask and that they
5374
5469
  # will be overwritten by the value of the fields in the request body.
@@ -5408,6 +5503,40 @@ module Google
5408
5503
  execute_or_queue_command(command, &block)
5409
5504
  end
5410
5505
 
5506
+ # Updates an add-on enablement status of an environment.
5507
+ # @param [String] name
5508
+ # Required. Name of the add-ons config. Must be in the format of `/organizations/
5509
+ # `org`/environments/`env`/addonsConfig`
5510
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SetAddonEnablementRequest] google_cloud_apigee_v1_set_addon_enablement_request_object
5511
+ # @param [String] fields
5512
+ # Selector specifying which fields to include in a partial response.
5513
+ # @param [String] quota_user
5514
+ # Available to use for quota purposes for server-side applications. Can be any
5515
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5516
+ # @param [Google::Apis::RequestOptions] options
5517
+ # Request-specific options
5518
+ #
5519
+ # @yield [result, err] Result & error if block supplied
5520
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleLongrunningOperation] parsed result object
5521
+ # @yieldparam err [StandardError] error object if request failed
5522
+ #
5523
+ # @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation]
5524
+ #
5525
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5526
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5527
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5528
+ def set_organization_environment_addons_config_addon_enablement(name, google_cloud_apigee_v1_set_addon_enablement_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5529
+ command = make_simple_command(:post, 'v1/{+name}:setAddonEnablement', options)
5530
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SetAddonEnablementRequest::Representation
5531
+ command.request_object = google_cloud_apigee_v1_set_addon_enablement_request_object
5532
+ command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
5533
+ command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
5534
+ command.params['name'] = name unless name.nil?
5535
+ command.query['fields'] = fields unless fields.nil?
5536
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5537
+ execute_or_queue_command(command, &block)
5538
+ end
5539
+
5411
5540
  # Gets a list of metrics and dimensions that can be used to create analytics
5412
5541
  # queries and reports. Each schema element contains the name of the field, its
5413
5542
  # associated type, and a flag indicating whether it is a standard or custom
@@ -5609,11 +5738,10 @@ module Google
5609
5738
  # before the new destination for the affected traffic is ready to receive it.
5610
5739
  # This should only be necessary if the new deployment will be capturing traffic
5611
5740
  # from another environment under a shared environment group or if traffic will
5612
- # be rerouted to a different environment due to a base path removal. The [
5613
- # generateDeployChangeReport API](generateDeployChangeReport) may be used to
5614
- # examine routing changes before issuing the deployment request, and its
5615
- # response will indicate if a sequenced rollout is recommended for the
5616
- # deployment.
5741
+ # be rerouted to a different environment due to a base path removal. The
5742
+ # generateDeployChangeReport API may be used to examine routing changes before
5743
+ # issuing the deployment request, and its response will indicate if a sequenced
5744
+ # rollout is recommended for the deployment.
5617
5745
  # @param [String] service_account
5618
5746
  # Google Cloud IAM service account. The service account represents the identity
5619
5747
  # of the deployed proxy, and determines what permissions it has. The format must
@@ -5695,11 +5823,10 @@ module Google
5695
5823
  # removed before removing the deployment from the runtime. This is likely to be
5696
5824
  # a rare use case; it is only needed when the intended effect of undeploying
5697
5825
  # this proxy is to cause the traffic it currently handles to be rerouted to some
5698
- # other existing proxy in the environment group. The [
5699
- # GenerateUndeployChangeReport API](GenerateUndeployChangeReport) may be used to
5700
- # examine routing changes before issuing the undeployment request, and its
5701
- # response will indicate if a sequenced rollout is recommended for the
5702
- # undeployment.
5826
+ # other existing proxy in the environment group. The
5827
+ # GenerateUndeployChangeReport API may be used to examine routing changes before
5828
+ # issuing the undeployment request, and its response will indicate if a
5829
+ # sequenced rollout is recommended for the undeployment.
5703
5830
  # @param [String] fields
5704
5831
  # Selector specifying which fields to include in a partial response.
5705
5832
  # @param [String] quota_user
@@ -7629,6 +7756,199 @@ module Google
7629
7756
  execute_or_queue_command(command, &block)
7630
7757
  end
7631
7758
 
7759
+ # CreateSecurityAction creates a SecurityAction.
7760
+ # @param [String] parent
7761
+ # Required. The organization and environment that this SecurityAction applies to.
7762
+ # Format: organizations/`org`/environments/`env`
7763
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction] google_cloud_apigee_v1_security_action_object
7764
+ # @param [String] security_action_id
7765
+ # Required. The ID to use for the SecurityAction, which will become the final
7766
+ # component of the action's resource name. This value should be 0-61 characters,
7767
+ # and valid format is (^[a-z]([a-z0-9-]`​0,61`[a-z0-9])?$).
7768
+ # @param [String] fields
7769
+ # Selector specifying which fields to include in a partial response.
7770
+ # @param [String] quota_user
7771
+ # Available to use for quota purposes for server-side applications. Can be any
7772
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7773
+ # @param [Google::Apis::RequestOptions] options
7774
+ # Request-specific options
7775
+ #
7776
+ # @yield [result, err] Result & error if block supplied
7777
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction] parsed result object
7778
+ # @yieldparam err [StandardError] error object if request failed
7779
+ #
7780
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction]
7781
+ #
7782
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7783
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7784
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7785
+ def create_organization_environment_security_action(parent, google_cloud_apigee_v1_security_action_object = nil, security_action_id: nil, fields: nil, quota_user: nil, options: nil, &block)
7786
+ command = make_simple_command(:post, 'v1/{+parent}/securityActions', options)
7787
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction::Representation
7788
+ command.request_object = google_cloud_apigee_v1_security_action_object
7789
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction::Representation
7790
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction
7791
+ command.params['parent'] = parent unless parent.nil?
7792
+ command.query['securityActionId'] = security_action_id unless security_action_id.nil?
7793
+ command.query['fields'] = fields unless fields.nil?
7794
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7795
+ execute_or_queue_command(command, &block)
7796
+ end
7797
+
7798
+ # Disable a SecurityAction. The `state` of the SecurityAction after disabling is
7799
+ # `DISABLED`. `DisableSecurityAction` can be called on SecurityActions in the
7800
+ # state `ENABLED`; SecurityActions in a different state (including `DISABLED`)
7801
+ # return an error.
7802
+ # @param [String] name
7803
+ # Required. The name of the SecurityAction to disable. Format: organizations/`
7804
+ # org`/environments/`env`/securityActions/`security_action`
7805
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DisableSecurityActionRequest] google_cloud_apigee_v1_disable_security_action_request_object
7806
+ # @param [String] fields
7807
+ # Selector specifying which fields to include in a partial response.
7808
+ # @param [String] quota_user
7809
+ # Available to use for quota purposes for server-side applications. Can be any
7810
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7811
+ # @param [Google::Apis::RequestOptions] options
7812
+ # Request-specific options
7813
+ #
7814
+ # @yield [result, err] Result & error if block supplied
7815
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction] parsed result object
7816
+ # @yieldparam err [StandardError] error object if request failed
7817
+ #
7818
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction]
7819
+ #
7820
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7821
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7822
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7823
+ def disable_organization_environment_security_action(name, google_cloud_apigee_v1_disable_security_action_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
7824
+ command = make_simple_command(:post, 'v1/{+name}:disable', options)
7825
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DisableSecurityActionRequest::Representation
7826
+ command.request_object = google_cloud_apigee_v1_disable_security_action_request_object
7827
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction::Representation
7828
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction
7829
+ command.params['name'] = name unless name.nil?
7830
+ command.query['fields'] = fields unless fields.nil?
7831
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7832
+ execute_or_queue_command(command, &block)
7833
+ end
7834
+
7835
+ # Enable a SecurityAction. The `state` of the SecurityAction after enabling is `
7836
+ # ENABLED`. `EnableSecurityAction` can be called on SecurityActions in the state
7837
+ # `DISABLED`; SecurityActions in a different state (including `ENABLED) return
7838
+ # an error.
7839
+ # @param [String] name
7840
+ # Required. The name of the SecurityAction to enable. Format: organizations/`org`
7841
+ # /environments/`env`/securityActions/`security_action`
7842
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnableSecurityActionRequest] google_cloud_apigee_v1_enable_security_action_request_object
7843
+ # @param [String] fields
7844
+ # Selector specifying which fields to include in a partial response.
7845
+ # @param [String] quota_user
7846
+ # Available to use for quota purposes for server-side applications. Can be any
7847
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7848
+ # @param [Google::Apis::RequestOptions] options
7849
+ # Request-specific options
7850
+ #
7851
+ # @yield [result, err] Result & error if block supplied
7852
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction] parsed result object
7853
+ # @yieldparam err [StandardError] error object if request failed
7854
+ #
7855
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction]
7856
+ #
7857
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7858
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7859
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7860
+ def enable_organization_environment_security_action(name, google_cloud_apigee_v1_enable_security_action_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
7861
+ command = make_simple_command(:post, 'v1/{+name}:enable', options)
7862
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnableSecurityActionRequest::Representation
7863
+ command.request_object = google_cloud_apigee_v1_enable_security_action_request_object
7864
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction::Representation
7865
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction
7866
+ command.params['name'] = name unless name.nil?
7867
+ command.query['fields'] = fields unless fields.nil?
7868
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7869
+ execute_or_queue_command(command, &block)
7870
+ end
7871
+
7872
+ # Get a SecurityAction by name.
7873
+ # @param [String] name
7874
+ # Required. The fully qualified name of the SecurityAction to retrieve. Format:
7875
+ # organizations/`org`/environments/`env`/securityActions/`security_action`
7876
+ # @param [String] fields
7877
+ # Selector specifying which fields to include in a partial response.
7878
+ # @param [String] quota_user
7879
+ # Available to use for quota purposes for server-side applications. Can be any
7880
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7881
+ # @param [Google::Apis::RequestOptions] options
7882
+ # Request-specific options
7883
+ #
7884
+ # @yield [result, err] Result & error if block supplied
7885
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction] parsed result object
7886
+ # @yieldparam err [StandardError] error object if request failed
7887
+ #
7888
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction]
7889
+ #
7890
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7891
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7892
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7893
+ def get_organization_environment_security_action(name, fields: nil, quota_user: nil, options: nil, &block)
7894
+ command = make_simple_command(:get, 'v1/{+name}', options)
7895
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction::Representation
7896
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction
7897
+ command.params['name'] = name unless name.nil?
7898
+ command.query['fields'] = fields unless fields.nil?
7899
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7900
+ execute_or_queue_command(command, &block)
7901
+ end
7902
+
7903
+ # Returns a list of SecurityActions. This returns both enabled and disabled
7904
+ # actions.
7905
+ # @param [String] parent
7906
+ # Required. The parent, which owns this collection of SecurityActions. Format:
7907
+ # organizations/`org`/environments/`env`
7908
+ # @param [String] filter
7909
+ # The filter expression to filter List results. https://google.aip.dev/160.
7910
+ # Allows for filtering over: state and api_proxies. E.g.: state = ACTIVE AND
7911
+ # apiProxies:foo. Filtering by action is not supported https://github.com/aip-
7912
+ # dev/google.aip.dev/issues/624
7913
+ # @param [Fixnum] page_size
7914
+ # The maximum number of SecurityActions to return. If unspecified, at most 50
7915
+ # SecurityActions will be returned. The maximum value is 1000; values above 1000
7916
+ # will be coerced to 1000.
7917
+ # @param [String] page_token
7918
+ # A page token, received from a previous `ListSecurityActions` call. Provide
7919
+ # this to retrieve the subsequent page. When paginating, all other parameters
7920
+ # provided to `ListSecurityActions` must match the call that provided the page
7921
+ # token.
7922
+ # @param [String] fields
7923
+ # Selector specifying which fields to include in a partial response.
7924
+ # @param [String] quota_user
7925
+ # Available to use for quota purposes for server-side applications. Can be any
7926
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7927
+ # @param [Google::Apis::RequestOptions] options
7928
+ # Request-specific options
7929
+ #
7930
+ # @yield [result, err] Result & error if block supplied
7931
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityActionsResponse] parsed result object
7932
+ # @yieldparam err [StandardError] error object if request failed
7933
+ #
7934
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityActionsResponse]
7935
+ #
7936
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7937
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7938
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7939
+ def list_organization_environment_security_actions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
7940
+ command = make_simple_command(:get, 'v1/{+parent}/securityActions', options)
7941
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityActionsResponse::Representation
7942
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityActionsResponse
7943
+ command.params['parent'] = parent unless parent.nil?
7944
+ command.query['filter'] = filter unless filter.nil?
7945
+ command.query['pageSize'] = page_size unless page_size.nil?
7946
+ command.query['pageToken'] = page_token unless page_token.nil?
7947
+ command.query['fields'] = fields unless fields.nil?
7948
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7949
+ execute_or_queue_command(command, &block)
7950
+ end
7951
+
7632
7952
  # GetSecurityIncident gets the specified security incident. Returns NOT_FOUND if
7633
7953
  # security incident is not present for the specified organization and
7634
7954
  # environment.
@@ -7673,11 +7993,11 @@ module Google
7673
7993
  # filtering can be done on API Proxies. Example: filter = "api_proxy = /", "
7674
7994
  # first_detected_time >", "last_detected_time <"
7675
7995
  # @param [Fixnum] page_size
7676
- # The maximum number of incidents to return. The service may return fewer than
7677
- # this value. If unspecified, at most 50 incidents will be returned.
7996
+ # Optional. The maximum number of incidents to return. The service may return
7997
+ # fewer than this value. If unspecified, at most 50 incidents will be returned.
7678
7998
  # @param [String] page_token
7679
- # A page token, received from a previous `ListSecurityIncident` call. Provide
7680
- # this to retrieve the subsequent page.
7999
+ # Optional. A page token, received from a previous `ListSecurityIncident` call.
8000
+ # Provide this to retrieve the subsequent page.
7681
8001
  # @param [String] fields
7682
8002
  # Selector specifying which fields to include in a partial response.
7683
8003
  # @param [String] quota_user
@@ -10145,6 +10465,75 @@ module Google
10145
10465
  execute_or_queue_command(command, &block)
10146
10466
  end
10147
10467
 
10468
+ # CreateSecurityProfile create a new custom security profile.
10469
+ # @param [String] parent
10470
+ # Required. Name of organization. Format: organizations/`org`
10471
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile] google_cloud_apigee_v1_security_profile_object
10472
+ # @param [String] security_profile_id
10473
+ # Required. The ID to use for the SecurityProfile, which will become the final
10474
+ # component of the action's resource name. This value should be 1-63 characters
10475
+ # and validated by "(^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$)".
10476
+ # @param [String] fields
10477
+ # Selector specifying which fields to include in a partial response.
10478
+ # @param [String] quota_user
10479
+ # Available to use for quota purposes for server-side applications. Can be any
10480
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10481
+ # @param [Google::Apis::RequestOptions] options
10482
+ # Request-specific options
10483
+ #
10484
+ # @yield [result, err] Result & error if block supplied
10485
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile] parsed result object
10486
+ # @yieldparam err [StandardError] error object if request failed
10487
+ #
10488
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile]
10489
+ #
10490
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10491
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10492
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10493
+ def create_organization_security_profile(parent, google_cloud_apigee_v1_security_profile_object = nil, security_profile_id: nil, fields: nil, quota_user: nil, options: nil, &block)
10494
+ command = make_simple_command(:post, 'v1/{+parent}/securityProfiles', options)
10495
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile::Representation
10496
+ command.request_object = google_cloud_apigee_v1_security_profile_object
10497
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile::Representation
10498
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile
10499
+ command.params['parent'] = parent unless parent.nil?
10500
+ command.query['securityProfileId'] = security_profile_id unless security_profile_id.nil?
10501
+ command.query['fields'] = fields unless fields.nil?
10502
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10503
+ execute_or_queue_command(command, &block)
10504
+ end
10505
+
10506
+ # DeleteSecurityProfile delete a profile with all its revisions.
10507
+ # @param [String] name
10508
+ # Required. Name of profile. Format: organizations/`org`/securityProfiles/`
10509
+ # profile`
10510
+ # @param [String] fields
10511
+ # Selector specifying which fields to include in a partial response.
10512
+ # @param [String] quota_user
10513
+ # Available to use for quota purposes for server-side applications. Can be any
10514
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10515
+ # @param [Google::Apis::RequestOptions] options
10516
+ # Request-specific options
10517
+ #
10518
+ # @yield [result, err] Result & error if block supplied
10519
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleProtobufEmpty] parsed result object
10520
+ # @yieldparam err [StandardError] error object if request failed
10521
+ #
10522
+ # @return [Google::Apis::ApigeeV1::GoogleProtobufEmpty]
10523
+ #
10524
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10525
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10526
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10527
+ def delete_organization_security_profile(name, fields: nil, quota_user: nil, options: nil, &block)
10528
+ command = make_simple_command(:delete, 'v1/{+name}', options)
10529
+ command.response_representation = Google::Apis::ApigeeV1::GoogleProtobufEmpty::Representation
10530
+ command.response_class = Google::Apis::ApigeeV1::GoogleProtobufEmpty
10531
+ command.params['name'] = name unless name.nil?
10532
+ command.query['fields'] = fields unless fields.nil?
10533
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10534
+ execute_or_queue_command(command, &block)
10535
+ end
10536
+
10148
10537
  # GetSecurityProfile gets the specified security profile. Returns NOT_FOUND if
10149
10538
  # security profile is not present for the specified organization.
10150
10539
  # @param [String] name
@@ -10258,6 +10647,43 @@ module Google
10258
10647
  execute_or_queue_command(command, &block)
10259
10648
  end
10260
10649
 
10650
+ # UpdateSecurityProfile update the metadata of security profile.
10651
+ # @param [String] name
10652
+ # Immutable. Name of the security profile resource. Format: organizations/`org`/
10653
+ # securityProfiles/`profile`
10654
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile] google_cloud_apigee_v1_security_profile_object
10655
+ # @param [String] update_mask
10656
+ # Required. The list of fields to update.
10657
+ # @param [String] fields
10658
+ # Selector specifying which fields to include in a partial response.
10659
+ # @param [String] quota_user
10660
+ # Available to use for quota purposes for server-side applications. Can be any
10661
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10662
+ # @param [Google::Apis::RequestOptions] options
10663
+ # Request-specific options
10664
+ #
10665
+ # @yield [result, err] Result & error if block supplied
10666
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile] parsed result object
10667
+ # @yieldparam err [StandardError] error object if request failed
10668
+ #
10669
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile]
10670
+ #
10671
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10672
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10673
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10674
+ def patch_organization_security_profile(name, google_cloud_apigee_v1_security_profile_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
10675
+ command = make_simple_command(:patch, 'v1/{+name}', options)
10676
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile::Representation
10677
+ command.request_object = google_cloud_apigee_v1_security_profile_object
10678
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile::Representation
10679
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile
10680
+ command.params['name'] = name unless name.nil?
10681
+ command.query['updateMask'] = update_mask unless update_mask.nil?
10682
+ command.query['fields'] = fields unless fields.nil?
10683
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10684
+ execute_or_queue_command(command, &block)
10685
+ end
10686
+
10261
10687
  # ComputeEnvironmentScores calculates scores for requested time range for the
10262
10688
  # specified security profile and environment.
10263
10689
  # @param [String] profile_environment
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-apigee_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.74.0
4
+ version: 0.76.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: 2023-08-06 00:00:00.000000000 Z
11
+ date: 2023-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-apigee_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-apigee_v1/v0.74.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-apigee_v1/v0.76.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-apigee_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Apigee API V1