@@ -38208,6 +38208,143 @@ public Create set(String parameterName, Object value) {
38208
38208
return (Create) super.set(parameterName, value);
38209
38209
}
38210
38210
}
38211
+ /**
38212
+ * Delete a SecurityAction.
38213
+ *
38214
+ * Create a request for the method "securityActions.delete".
38215
+ *
38216
+ * This request holds the parameters needed by the apigee server. After setting any optional
38217
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
38218
+ *
38219
+ * @param name Required. The name of the security monitoring condition to delete. Format:
38220
+ * `organizations/{org}/environment/{env}/securityActions/{security_action}`
38221
+ * @return the request
38222
+ */
38223
+ public Delete delete(java.lang.String name) throws java.io.IOException {
38224
+ Delete result = new Delete(name);
38225
+ initialize(result);
38226
+ return result;
38227
+ }
38228
+
38229
+ public class Delete extends ApigeeRequest<com.google.api.services.apigee.v1.model.GoogleProtobufEmpty> {
38230
+
38231
+ private static final String REST_PATH = "v1/{+name}";
38232
+
38233
+ private final java.util.regex.Pattern NAME_PATTERN =
38234
+ java.util.regex.Pattern.compile("^organizations/[^/]+/environments/[^/]+/securityActions/[^/]+$");
38235
+
38236
+ /**
38237
+ * Delete a SecurityAction.
38238
+ *
38239
+ * Create a request for the method "securityActions.delete".
38240
+ *
38241
+ * This request holds the parameters needed by the the apigee server. After setting any optional
38242
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation. <p> {@link
38243
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
38244
+ * be called to initialize this instance immediately after invoking the constructor. </p>
38245
+ *
38246
+ * @param name Required. The name of the security monitoring condition to delete. Format:
38247
+ * `organizations/{org}/environment/{env}/securityActions/{security_action}`
38248
+ * @since 1.13
38249
+ */
38250
+ protected Delete(java.lang.String name) {
38251
+ super(Apigee.this, "DELETE", REST_PATH, null, com.google.api.services.apigee.v1.model.GoogleProtobufEmpty.class);
38252
+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
38253
+ if (!getSuppressPatternChecks()) {
38254
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
38255
+ "Parameter name must conform to the pattern " +
38256
+ "^organizations/[^/]+/environments/[^/]+/securityActions/[^/]+$");
38257
+ }
38258
+ }
38259
+
38260
+ @Override
38261
+ public Delete set$Xgafv(java.lang.String $Xgafv) {
38262
+ return (Delete) super.set$Xgafv($Xgafv);
38263
+ }
38264
+
38265
+ @Override
38266
+ public Delete setAccessToken(java.lang.String accessToken) {
38267
+ return (Delete) super.setAccessToken(accessToken);
38268
+ }
38269
+
38270
+ @Override
38271
+ public Delete setAlt(java.lang.String alt) {
38272
+ return (Delete) super.setAlt(alt);
38273
+ }
38274
+
38275
+ @Override
38276
+ public Delete setCallback(java.lang.String callback) {
38277
+ return (Delete) super.setCallback(callback);
38278
+ }
38279
+
38280
+ @Override
38281
+ public Delete setFields(java.lang.String fields) {
38282
+ return (Delete) super.setFields(fields);
38283
+ }
38284
+
38285
+ @Override
38286
+ public Delete setKey(java.lang.String key) {
38287
+ return (Delete) super.setKey(key);
38288
+ }
38289
+
38290
+ @Override
38291
+ public Delete setOauthToken(java.lang.String oauthToken) {
38292
+ return (Delete) super.setOauthToken(oauthToken);
38293
+ }
38294
+
38295
+ @Override
38296
+ public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
38297
+ return (Delete) super.setPrettyPrint(prettyPrint);
38298
+ }
38299
+
38300
+ @Override
38301
+ public Delete setQuotaUser(java.lang.String quotaUser) {
38302
+ return (Delete) super.setQuotaUser(quotaUser);
38303
+ }
38304
+
38305
+ @Override
38306
+ public Delete setUploadType(java.lang.String uploadType) {
38307
+ return (Delete) super.setUploadType(uploadType);
38308
+ }
38309
+
38310
+ @Override
38311
+ public Delete setUploadProtocol(java.lang.String uploadProtocol) {
38312
+ return (Delete) super.setUploadProtocol(uploadProtocol);
38313
+ }
38314
+
38315
+ /**
38316
+ * Required. The name of the security monitoring condition to delete. Format:
38317
+ * `organizations/{org}/environment/{env}/securityActions/{security_action}`
38318
+ */
38319
+ @com.google.api.client.util.Key
38320
+ private java.lang.String name;
38321
+
38322
+ /** Required. The name of the security monitoring condition to delete. Format:
38323
+ `organizations/{org}/environment/{env}/securityActions/{security_action}`
38324
+ */
38325
+ public java.lang.String getName() {
38326
+ return name;
38327
+ }
38328
+
38329
+ /**
38330
+ * Required. The name of the security monitoring condition to delete. Format:
38331
+ * `organizations/{org}/environment/{env}/securityActions/{security_action}`
38332
+ */
38333
+ public Delete setName(java.lang.String name) {
38334
+ if (!getSuppressPatternChecks()) {
38335
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
38336
+ "Parameter name must conform to the pattern " +
38337
+ "^organizations/[^/]+/environments/[^/]+/securityActions/[^/]+$");
38338
+ }
38339
+ this.name = name;
38340
+ return this;
38341
+ }
38342
+
38343
+ @Override
38344
+ public Delete set(String parameterName, Object value) {
38345
+ return (Delete) super.set(parameterName, value);
38346
+ }
38347
+ }
38211
38348
/**
38212
38349
* Disable a SecurityAction. The `state` of the SecurityAction after disabling is `DISABLED`.
38213
38350
* `DisableSecurityAction` can be called on SecurityActions in the state `ENABLED`; SecurityActions
@@ -38868,6 +39005,177 @@ public List set(String parameterName, Object value) {
38868
39005
return (List) super.set(parameterName, value);
38869
39006
}
38870
39007
}
39008
+ /**
39009
+ * Update a SecurityAction.
39010
+ *
39011
+ * Create a request for the method "securityActions.patch".
39012
+ *
39013
+ * This request holds the parameters needed by the apigee server. After setting any optional
39014
+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
39015
+ *
39016
+ * @param name Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id`
39017
+ * field in the CreateSecurityActionRequest when creating a new SecurityAction. Format:
39018
+ * organizations/{org}/environments/{env}/securityActions/{security_action}
39019
+ * @param content the {@link com.google.api.services.apigee.v1.model.GoogleCloudApigeeV1SecurityAction}
39020
+ * @return the request
39021
+ */
39022
+ public Patch patch(java.lang.String name, com.google.api.services.apigee.v1.model.GoogleCloudApigeeV1SecurityAction content) throws java.io.IOException {
39023
+ Patch result = new Patch(name, content);
39024
+ initialize(result);
39025
+ return result;
39026
+ }
39027
+
39028
+ public class Patch extends ApigeeRequest<com.google.api.services.apigee.v1.model.GoogleCloudApigeeV1SecurityAction> {
39029
+
39030
+ private static final String REST_PATH = "v1/{+name}";
39031
+
39032
+ private final java.util.regex.Pattern NAME_PATTERN =
39033
+ java.util.regex.Pattern.compile("^organizations/[^/]+/environments/[^/]+/securityActions/[^/]+$");
39034
+
39035
+ /**
39036
+ * Update a SecurityAction.
39037
+ *
39038
+ * Create a request for the method "securityActions.patch".
39039
+ *
39040
+ * This request holds the parameters needed by the the apigee server. After setting any optional
39041
+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation. <p> {@link
39042
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
39043
+ * be called to initialize this instance immediately after invoking the constructor. </p>
39044
+ *
39045
+ * @param name Immutable. This field is ignored during creation as per AIP-133. Please set the `security_action_id`
39046
+ * field in the CreateSecurityActionRequest when creating a new SecurityAction. Format:
39047
+ * organizations/{org}/environments/{env}/securityActions/{security_action}
39048
+ * @param content the {@link com.google.api.services.apigee.v1.model.GoogleCloudApigeeV1SecurityAction}
39049
+ * @since 1.13
39050
+ */
39051
+ protected Patch(java.lang.String name, com.google.api.services.apigee.v1.model.GoogleCloudApigeeV1SecurityAction content) {
39052
+ super(Apigee.this, "PATCH", REST_PATH, content, com.google.api.services.apigee.v1.model.GoogleCloudApigeeV1SecurityAction.class);
39053
+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
39054
+ if (!getSuppressPatternChecks()) {
39055
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
39056
+ "Parameter name must conform to the pattern " +
39057
+ "^organizations/[^/]+/environments/[^/]+/securityActions/[^/]+$");
39058
+ }
39059
+ }
39060
+
39061
+ @Override
39062
+ public Patch set$Xgafv(java.lang.String $Xgafv) {
39063
+ return (Patch) super.set$Xgafv($Xgafv);
39064
+ }
39065
+
39066
+ @Override
39067
+ public Patch setAccessToken(java.lang.String accessToken) {
39068
+ return (Patch) super.setAccessToken(accessToken);
39069
+ }
39070
+
39071
+ @Override
39072
+ public Patch setAlt(java.lang.String alt) {
39073
+ return (Patch) super.setAlt(alt);
39074
+ }
39075
+
39076
+ @Override
39077
+ public Patch setCallback(java.lang.String callback) {
39078
+ return (Patch) super.setCallback(callback);
39079
+ }
39080
+
39081
+ @Override
39082
+ public Patch setFields(java.lang.String fields) {
39083
+ return (Patch) super.setFields(fields);
39084
+ }
39085
+
39086
+ @Override
39087
+ public Patch setKey(java.lang.String key) {
39088
+ return (Patch) super.setKey(key);
39089
+ }
39090
+
39091
+ @Override
39092
+ public Patch setOauthToken(java.lang.String oauthToken) {
39093
+ return (Patch) super.setOauthToken(oauthToken);
39094
+ }
39095
+
39096
+ @Override
39097
+ public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
39098
+ return (Patch) super.setPrettyPrint(prettyPrint);
39099
+ }
39100
+
39101
+ @Override
39102
+ public Patch setQuotaUser(java.lang.String quotaUser) {
39103
+ return (Patch) super.setQuotaUser(quotaUser);
39104
+ }
39105
+
39106
+ @Override
39107
+ public Patch setUploadType(java.lang.String uploadType) {
39108
+ return (Patch) super.setUploadType(uploadType);
39109
+ }
39110
+
39111
+ @Override
39112
+ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
39113
+ return (Patch) super.setUploadProtocol(uploadProtocol);
39114
+ }
39115
+
39116
+ /**
39117
+ * Immutable. This field is ignored during creation as per AIP-133. Please set the
39118
+ * `security_action_id` field in the CreateSecurityActionRequest when creating a new
39119
+ * SecurityAction. Format:
39120
+ * organizations/{org}/environments/{env}/securityActions/{security_action}
39121
+ */
39122
+ @com.google.api.client.util.Key
39123
+ private java.lang.String name;
39124
+
39125
+ /** Immutable. This field is ignored during creation as per AIP-133. Please set the
39126
+ `security_action_id` field in the CreateSecurityActionRequest when creating a new SecurityAction.
39127
+ Format: organizations/{org}/environments/{env}/securityActions/{security_action}
39128
+ */
39129
+ public java.lang.String getName() {
39130
+ return name;
39131
+ }
39132
+
39133
+ /**
39134
+ * Immutable. This field is ignored during creation as per AIP-133. Please set the
39135
+ * `security_action_id` field in the CreateSecurityActionRequest when creating a new
39136
+ * SecurityAction. Format:
39137
+ * organizations/{org}/environments/{env}/securityActions/{security_action}
39138
+ */
39139
+ public Patch setName(java.lang.String name) {
39140
+ if (!getSuppressPatternChecks()) {
39141
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
39142
+ "Parameter name must conform to the pattern " +
39143
+ "^organizations/[^/]+/environments/[^/]+/securityActions/[^/]+$");
39144
+ }
39145
+ this.name = name;
39146
+ return this;
39147
+ }
39148
+
39149
+ /**
39150
+ * Optional. The list of fields to update. Valid fields to update are `description`,
39151
+ * `state`, `allow`, `deny`, and `flag`, `expire_time`, and `ttl`, `api_proxies`, and
39152
+ * `condition_config`.
39153
+ */
39154
+ @com.google.api.client.util.Key
39155
+ private String updateMask;
39156
+
39157
+ /** Optional. The list of fields to update. Valid fields to update are `description`, `state`, `allow`,
39158
+ `deny`, and `flag`, `expire_time`, and `ttl`, `api_proxies`, and `condition_config`.
39159
+ */
39160
+ public String getUpdateMask() {
39161
+ return updateMask;
39162
+ }
39163
+
39164
+ /**
39165
+ * Optional. The list of fields to update. Valid fields to update are `description`,
39166
+ * `state`, `allow`, `deny`, and `flag`, `expire_time`, and `ttl`, `api_proxies`, and
39167
+ * `condition_config`.
39168
+ */
39169
+ public Patch setUpdateMask(String updateMask) {
39170
+ this.updateMask = updateMask;
39171
+ return this;
39172
+ }
39173
+
39174
+ @Override
39175
+ public Patch set(String parameterName, Object value) {
39176
+ return (Patch) super.set(parameterName, value);
39177
+ }
39178
+ }
38871
39179
38872
39180
}
38873
39181
/**
0 commit comments