Skip to content

Commit 1f0d6b7

Browse files
feat(apigee): update the api
#### apigee:v1 The following keys were added: - resources.organizations.resources.environments.resources.securityActions.methods.delete (Total Keys: 11) - resources.organizations.resources.environments.resources.securityActions.methods.patch (Total Keys: 15)
1 parent 1dbe3b8 commit 1f0d6b7

File tree

3 files changed

+227
-3
lines changed

3 files changed

+227
-3
lines changed

docs/dyn/apigee_v1.organizations.appgroups.apps.keys.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ <h3>Method Details</h3>
258258
&quot;apiProducts&quot;: [ # The list of API products that will be associated with the credential. This list will be appended to the existing list of associated API Products for this App Key. Duplicates will be ignored.
259259
&quot;A String&quot;,
260260
],
261-
&quot;appGroupAppKey&quot;: { # AppGroupAppKey contains all the information associated with the credentials. # Note that only Scopes and Attributes of the AppGroupAppKey can be amended.
261+
&quot;appGroupAppKey&quot;: { # AppGroupAppKey contains all the information associated with the credentials. # Note that only Scopes and Attributes of the AppGroupAppKey can be amended. Scopes and Attributes mentioned in the request will be inserted and the existing scopes and attributes will be removed.
262262
&quot;apiProducts&quot;: [ # Output only. List of API products and its status for which the credential can be used. **Note**: Use UpdateAppGroupAppKeyApiProductRequest API to make the association after the consumer key and secret are created.
263263
{ # APIProductAssociation has the API product and its administrative state association.
264264
&quot;apiproduct&quot;: &quot;A String&quot;, # API product to be associated with the credential.

docs/dyn/apigee_v1.organizations.environments.securityActions.html

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ <h2>Instance Methods</h2>
8080
<p class="toc_element">
8181
<code><a href="#create">create(parent, body=None, securityActionId=None, x__xgafv=None)</a></code></p>
8282
<p class="firstline">CreateSecurityAction creates a SecurityAction.</p>
83+
<p class="toc_element">
84+
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85+
<p class="firstline">Delete a SecurityAction.</p>
8386
<p class="toc_element">
8487
<code><a href="#disable">disable(name, body=None, x__xgafv=None)</a></code></p>
8588
<p class="firstline">Disable a SecurityAction. The `state` of the SecurityAction after disabling is `DISABLED`. `DisableSecurityAction` can be called on SecurityActions in the state `ENABLED`; SecurityActions in a different state (including `DISABLED`) return an error.</p>
@@ -95,6 +98,9 @@ <h2>Instance Methods</h2>
9598
<p class="toc_element">
9699
<code><a href="#list_next">list_next()</a></code></p>
97100
<p class="firstline">Retrieves the next page of results.</p>
101+
<p class="toc_element">
102+
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
103+
<p class="firstline">Update a SecurityAction.</p>
98104
<h3>Method Details</h3>
99105
<div class="method">
100106
<code class="details" id="close">close()</code>
@@ -242,6 +248,24 @@ <h3>Method Details</h3>
242248
}</pre>
243249
</div>
244250

251+
<div class="method">
252+
<code class="details" id="delete">delete(name, x__xgafv=None)</code>
253+
<pre>Delete a SecurityAction.
254+
255+
Args:
256+
name: string, Required. The name of the security monitoring condition to delete. Format: `organizations/{org}/environment/{env}/securityActions/{security_action}` (required)
257+
x__xgafv: string, V1 error format.
258+
Allowed values
259+
1 - v1 error format
260+
2 - v2 error format
261+
262+
Returns:
263+
An object of the form:
264+
265+
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
266+
}</pre>
267+
</div>
268+
245269
<div class="method">
246270
<code class="details" id="disable">disable(name, body=None, x__xgafv=None)</code>
247271
<pre>Disable a SecurityAction. The `state` of the SecurityAction after disabling is `DISABLED`. `DisableSecurityAction` can be called on SecurityActions in the state `ENABLED`; SecurityActions in a different state (including `DISABLED`) return an error.
@@ -580,4 +604,145 @@ <h3>Method Details</h3>
580604
</pre>
581605
</div>
582606

607+
<div class="method">
608+
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
609+
<pre>Update a SecurityAction.
610+
611+
Args:
612+
name: string, Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction. Format: organizations/{org}/environments/{env}/securityActions/{security_action} (required)
613+
body: object, The request body.
614+
The object takes the form of:
615+
616+
{ # A SecurityAction is rule that can be enforced at an environment level. The result is one of: - A denied API call - An explicitly allowed API call - A flagged API call (HTTP headers added before the target receives it) At least one condition is required to create a SecurityAction.
617+
&quot;allow&quot;: { # Message that should be set in case of an Allow Action. This does not have any fields. # Allow a request through if it matches this SecurityAction.
618+
},
619+
&quot;apiProxies&quot;: [ # Optional. If unset, this would apply to all proxies in the environment. If set, this action is enforced only if at least one proxy in the repeated list is deployed at the time of enforcement. If set, several restrictions are enforced on SecurityActions. There can be at most 100 enabled actions with proxies set in an env. Several other restrictions apply on conditions and are detailed later.
620+
&quot;A String&quot;,
621+
],
622+
&quot;conditionConfig&quot;: { # The following are a list of conditions. A valid SecurityAction must contain at least one condition. Within a condition, each element is ORed. Across conditions elements are ANDed. For example if a SecurityAction has the following: ip_address_ranges: [&quot;ip1&quot;, &quot;ip2&quot;] and bot_reasons: [&quot;Flooder&quot;, &quot;Robot Abuser&quot;] then this is interpreted as: enforce the action if the incoming request has ((ip_address_ranges = &quot;ip1&quot; OR ip_address_ranges = &quot;ip2&quot;) AND (bot_reasons=&quot;Flooder&quot; OR bot_reasons=&quot;Robot Abuser&quot;)). Conditions other than ip_address_ranges and bot_reasons cannot be ANDed. # Required. A valid SecurityAction must contain at least one condition.
623+
&quot;accessTokens&quot;: [ # Optional. A list of access_tokens. Limit 1000 per action.
624+
&quot;A String&quot;,
625+
],
626+
&quot;apiKeys&quot;: [ # Optional. A list of API keys. Limit 1000 per action.
627+
&quot;A String&quot;,
628+
],
629+
&quot;apiProducts&quot;: [ # Optional. A list of API Products. Limit 1000 per action.
630+
&quot;A String&quot;,
631+
],
632+
&quot;asns&quot;: [ # Optional. A list of ASN numbers to act on, e.g. 23. https://en.wikipedia.org/wiki/Autonomous_system_(Internet) This uses int64 instead of uint32 because of https://linter.aip.dev/141/forbidden-types.
633+
&quot;A String&quot;,
634+
],
635+
&quot;botReasons&quot;: [ # Optional. A list of Bot Reasons. Current options: Flooder, Brute Guessor, Static Content Scraper, OAuth Abuser, Robot Abuser, TorListRule, Advanced Anomaly Detection, Advanced API Scraper, Search Engine Crawlers, Public Clouds, Public Cloud AWS, Public Cloud Azure, and Public Cloud Google.
636+
&quot;A String&quot;,
637+
],
638+
&quot;developerApps&quot;: [ # Optional. A list of developer apps. Limit 1000 per action.
639+
&quot;A String&quot;,
640+
],
641+
&quot;developers&quot;: [ # Optional. A list of developers. Limit 1000 per action.
642+
&quot;A String&quot;,
643+
],
644+
&quot;httpMethods&quot;: [ # Optional. Act only on particular HTTP methods. E.g. A read-only API can block POST/PUT/DELETE methods. Accepted values are: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE and PATCH.
645+
&quot;A String&quot;,
646+
],
647+
&quot;ipAddressRanges&quot;: [ # Optional. A list of IP addresses. This could be either IPv4 or IPv6. Limited to 100 per action.
648+
&quot;A String&quot;,
649+
],
650+
&quot;regionCodes&quot;: [ # Optional. A list of countries/region codes to act on, e.g. US. This follows https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
651+
&quot;A String&quot;,
652+
],
653+
&quot;userAgents&quot;: [ # Optional. A list of user agents to deny. We look for exact matches. Limit 50 per action.
654+
&quot;A String&quot;,
655+
],
656+
},
657+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The create time for this SecurityAction.
658+
&quot;deny&quot;: { # Message that should be set in case of a Deny Action. # Deny a request through if it matches this SecurityAction.
659+
&quot;responseCode&quot;: 42, # Optional. The HTTP response code if the Action = DENY.
660+
},
661+
&quot;description&quot;: &quot;A String&quot;, # Optional. An optional user provided description of the SecurityAction.
662+
&quot;expireTime&quot;: &quot;A String&quot;, # The expiration for this SecurityAction.
663+
&quot;flag&quot;: { # The message that should be set in the case of a Flag action. # Flag a request through if it matches this SecurityAction.
664+
&quot;headers&quot;: [ # Optional. A list of HTTP headers to be sent to the target in case of a FLAG SecurityAction. Limit 5 headers per SecurityAction. At least one is mandatory.
665+
{ # An HTTP header.
666+
&quot;name&quot;: &quot;A String&quot;, # The header name to be sent to the target.
667+
&quot;value&quot;: &quot;A String&quot;, # The header value to be sent to the target.
668+
},
669+
],
670+
},
671+
&quot;name&quot;: &quot;A String&quot;, # Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction. Format: organizations/{org}/environments/{env}/securityActions/{security_action}
672+
&quot;state&quot;: &quot;A String&quot;, # Required. Only an ENABLED SecurityAction is enforced. An ENABLED SecurityAction past its expiration time will not be enforced.
673+
&quot;ttl&quot;: &quot;A String&quot;, # Input only. The TTL for this SecurityAction.
674+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The update time for this SecurityAction. This reflects when this SecurityAction changed states.
675+
}
676+
677+
updateMask: string, Optional. The list of fields to update. Valid fields to update are `description`, `state`, `allow`, `deny`, and `flag`, `expire_time`, and `ttl`, `api_proxies`, and `condition_config`.
678+
x__xgafv: string, V1 error format.
679+
Allowed values
680+
1 - v1 error format
681+
2 - v2 error format
682+
683+
Returns:
684+
An object of the form:
685+
686+
{ # A SecurityAction is rule that can be enforced at an environment level. The result is one of: - A denied API call - An explicitly allowed API call - A flagged API call (HTTP headers added before the target receives it) At least one condition is required to create a SecurityAction.
687+
&quot;allow&quot;: { # Message that should be set in case of an Allow Action. This does not have any fields. # Allow a request through if it matches this SecurityAction.
688+
},
689+
&quot;apiProxies&quot;: [ # Optional. If unset, this would apply to all proxies in the environment. If set, this action is enforced only if at least one proxy in the repeated list is deployed at the time of enforcement. If set, several restrictions are enforced on SecurityActions. There can be at most 100 enabled actions with proxies set in an env. Several other restrictions apply on conditions and are detailed later.
690+
&quot;A String&quot;,
691+
],
692+
&quot;conditionConfig&quot;: { # The following are a list of conditions. A valid SecurityAction must contain at least one condition. Within a condition, each element is ORed. Across conditions elements are ANDed. For example if a SecurityAction has the following: ip_address_ranges: [&quot;ip1&quot;, &quot;ip2&quot;] and bot_reasons: [&quot;Flooder&quot;, &quot;Robot Abuser&quot;] then this is interpreted as: enforce the action if the incoming request has ((ip_address_ranges = &quot;ip1&quot; OR ip_address_ranges = &quot;ip2&quot;) AND (bot_reasons=&quot;Flooder&quot; OR bot_reasons=&quot;Robot Abuser&quot;)). Conditions other than ip_address_ranges and bot_reasons cannot be ANDed. # Required. A valid SecurityAction must contain at least one condition.
693+
&quot;accessTokens&quot;: [ # Optional. A list of access_tokens. Limit 1000 per action.
694+
&quot;A String&quot;,
695+
],
696+
&quot;apiKeys&quot;: [ # Optional. A list of API keys. Limit 1000 per action.
697+
&quot;A String&quot;,
698+
],
699+
&quot;apiProducts&quot;: [ # Optional. A list of API Products. Limit 1000 per action.
700+
&quot;A String&quot;,
701+
],
702+
&quot;asns&quot;: [ # Optional. A list of ASN numbers to act on, e.g. 23. https://en.wikipedia.org/wiki/Autonomous_system_(Internet) This uses int64 instead of uint32 because of https://linter.aip.dev/141/forbidden-types.
703+
&quot;A String&quot;,
704+
],
705+
&quot;botReasons&quot;: [ # Optional. A list of Bot Reasons. Current options: Flooder, Brute Guessor, Static Content Scraper, OAuth Abuser, Robot Abuser, TorListRule, Advanced Anomaly Detection, Advanced API Scraper, Search Engine Crawlers, Public Clouds, Public Cloud AWS, Public Cloud Azure, and Public Cloud Google.
706+
&quot;A String&quot;,
707+
],
708+
&quot;developerApps&quot;: [ # Optional. A list of developer apps. Limit 1000 per action.
709+
&quot;A String&quot;,
710+
],
711+
&quot;developers&quot;: [ # Optional. A list of developers. Limit 1000 per action.
712+
&quot;A String&quot;,
713+
],
714+
&quot;httpMethods&quot;: [ # Optional. Act only on particular HTTP methods. E.g. A read-only API can block POST/PUT/DELETE methods. Accepted values are: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE and PATCH.
715+
&quot;A String&quot;,
716+
],
717+
&quot;ipAddressRanges&quot;: [ # Optional. A list of IP addresses. This could be either IPv4 or IPv6. Limited to 100 per action.
718+
&quot;A String&quot;,
719+
],
720+
&quot;regionCodes&quot;: [ # Optional. A list of countries/region codes to act on, e.g. US. This follows https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
721+
&quot;A String&quot;,
722+
],
723+
&quot;userAgents&quot;: [ # Optional. A list of user agents to deny. We look for exact matches. Limit 50 per action.
724+
&quot;A String&quot;,
725+
],
726+
},
727+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The create time for this SecurityAction.
728+
&quot;deny&quot;: { # Message that should be set in case of a Deny Action. # Deny a request through if it matches this SecurityAction.
729+
&quot;responseCode&quot;: 42, # Optional. The HTTP response code if the Action = DENY.
730+
},
731+
&quot;description&quot;: &quot;A String&quot;, # Optional. An optional user provided description of the SecurityAction.
732+
&quot;expireTime&quot;: &quot;A String&quot;, # The expiration for this SecurityAction.
733+
&quot;flag&quot;: { # The message that should be set in the case of a Flag action. # Flag a request through if it matches this SecurityAction.
734+
&quot;headers&quot;: [ # Optional. A list of HTTP headers to be sent to the target in case of a FLAG SecurityAction. Limit 5 headers per SecurityAction. At least one is mandatory.
735+
{ # An HTTP header.
736+
&quot;name&quot;: &quot;A String&quot;, # The header name to be sent to the target.
737+
&quot;value&quot;: &quot;A String&quot;, # The header value to be sent to the target.
738+
},
739+
],
740+
},
741+
&quot;name&quot;: &quot;A String&quot;, # Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction. Format: organizations/{org}/environments/{env}/securityActions/{security_action}
742+
&quot;state&quot;: &quot;A String&quot;, # Required. Only an ENABLED SecurityAction is enforced. An ENABLED SecurityAction past its expiration time will not be enforced.
743+
&quot;ttl&quot;: &quot;A String&quot;, # Input only. The TTL for this SecurityAction.
744+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The update time for this SecurityAction. This reflects when this SecurityAction changed states.
745+
}</pre>
746+
</div>
747+
583748
</body></html>

googleapiclient/discovery_cache/documents/apigee.v1.json

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7057,6 +7057,31 @@
70577057
"https://www.googleapis.com/auth/cloud-platform"
70587058
]
70597059
},
7060+
"delete": {
7061+
"description": "Delete a SecurityAction.",
7062+
"flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/securityActions/{securityActionsId}",
7063+
"httpMethod": "DELETE",
7064+
"id": "apigee.organizations.environments.securityActions.delete",
7065+
"parameterOrder": [
7066+
"name"
7067+
],
7068+
"parameters": {
7069+
"name": {
7070+
"description": "Required. The name of the security monitoring condition to delete. Format: `organizations/{org}/environment/{env}/securityActions/{security_action}`",
7071+
"location": "path",
7072+
"pattern": "^organizations/[^/]+/environments/[^/]+/securityActions/[^/]+$",
7073+
"required": true,
7074+
"type": "string"
7075+
}
7076+
},
7077+
"path": "v1/{+name}",
7078+
"response": {
7079+
"$ref": "GoogleProtobufEmpty"
7080+
},
7081+
"scopes": [
7082+
"https://www.googleapis.com/auth/cloud-platform"
7083+
]
7084+
},
70607085
"disable": {
70617086
"description": "Disable a SecurityAction. The `state` of the SecurityAction after disabling is `DISABLED`. `DisableSecurityAction` can be called on SecurityActions in the state `ENABLED`; SecurityActions in a different state (including `DISABLED`) return an error.",
70627087
"flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/securityActions/{securityActionsId}:disable",
@@ -7178,6 +7203,40 @@
71787203
"scopes": [
71797204
"https://www.googleapis.com/auth/cloud-platform"
71807205
]
7206+
},
7207+
"patch": {
7208+
"description": "Update a SecurityAction.",
7209+
"flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/securityActions/{securityActionsId}",
7210+
"httpMethod": "PATCH",
7211+
"id": "apigee.organizations.environments.securityActions.patch",
7212+
"parameterOrder": [
7213+
"name"
7214+
],
7215+
"parameters": {
7216+
"name": {
7217+
"description": "Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction. Format: organizations/{org}/environments/{env}/securityActions/{security_action}",
7218+
"location": "path",
7219+
"pattern": "^organizations/[^/]+/environments/[^/]+/securityActions/[^/]+$",
7220+
"required": true,
7221+
"type": "string"
7222+
},
7223+
"updateMask": {
7224+
"description": "Optional. The list of fields to update. Valid fields to update are `description`, `state`, `allow`, `deny`, and `flag`, `expire_time`, and `ttl`, `api_proxies`, and `condition_config`.",
7225+
"format": "google-fieldmask",
7226+
"location": "query",
7227+
"type": "string"
7228+
}
7229+
},
7230+
"path": "v1/{+name}",
7231+
"request": {
7232+
"$ref": "GoogleCloudApigeeV1SecurityAction"
7233+
},
7234+
"response": {
7235+
"$ref": "GoogleCloudApigeeV1SecurityAction"
7236+
},
7237+
"scopes": [
7238+
"https://www.googleapis.com/auth/cloud-platform"
7239+
]
71817240
}
71827241
}
71837242
},
@@ -11063,7 +11122,7 @@
1106311122
}
1106411123
}
1106511124
},
11066-
"revision": "20250614",
11125+
"revision": "20250622",
1106711126
"rootUrl": "https://apigee.googleapis.com/",
1106811127
"schemas": {
1106911128
"EdgeConfigstoreBundleBadBundle": {
@@ -19551,7 +19610,7 @@
1955119610
},
1955219611
"appGroupAppKey": {
1955319612
"$ref": "GoogleCloudApigeeV1AppGroupAppKey",
19554-
"description": "Note that only Scopes and Attributes of the AppGroupAppKey can be amended."
19613+
"description": "Note that only Scopes and Attributes of the AppGroupAppKey can be amended. Scopes and Attributes mentioned in the request will be inserted and the existing scopes and attributes will be removed."
1955519614
}
1955619615
},
1955719616
"type": "object"

0 commit comments

Comments
 (0)