|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.discoveryengine.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Informations to support actions on the connector. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: |
| 24 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 25 | + * </p> |
| 26 | + * |
| 27 | + * @author Google, Inc. |
| 28 | + */ |
| 29 | +@SuppressWarnings("javadoc") |
| 30 | +public final class GoogleCloudDiscoveryengineV1ActionConfig extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Required. Params needed to support actions in the format of (Key, Value) pairs. Required |
| 34 | + * parameters for sources that support OAUTH, i.e. `gmail`, `google_calendar`, `jira`, `workday`, |
| 35 | + * `salesforce`, `confluence`: * Key: `client_id` * Value: type STRING. The client ID for the |
| 36 | + * service provider to identify your application. * Key: `client_secret` * Value:type STRING. The |
| 37 | + * client secret generated by the application's authorization server. |
| 38 | + * The value may be {@code null}. |
| 39 | + */ |
| 40 | + @com.google.api.client.util.Key |
| 41 | + private java.util.Map<String, java.lang.Object> actionParams; |
| 42 | + |
| 43 | + /** |
| 44 | + * Output only. The connector contains the necessary parameters and is configured to support |
| 45 | + * actions. |
| 46 | + * The value may be {@code null}. |
| 47 | + */ |
| 48 | + @com.google.api.client.util.Key |
| 49 | + private java.lang.Boolean isActionConfigured; |
| 50 | + |
| 51 | + /** |
| 52 | + * Optional. The Service Directory resource name (projects/locations/namespaces/services) |
| 53 | + * representing a VPC network endpoint used to connect to the data source's `instance_uri`, |
| 54 | + * defined in DataConnector.params. Required when VPC Service Controls are enabled. |
| 55 | + * The value may be {@code null}. |
| 56 | + */ |
| 57 | + @com.google.api.client.util.Key |
| 58 | + private java.lang.String serviceName; |
| 59 | + |
| 60 | + /** |
| 61 | + * Optional. Whether to use static secrets for the connector. If true, the secrets provided in the |
| 62 | + * action_params will be ignored. |
| 63 | + * The value may be {@code null}. |
| 64 | + */ |
| 65 | + @com.google.api.client.util.Key |
| 66 | + private java.lang.Boolean useStaticSecrets; |
| 67 | + |
| 68 | + /** |
| 69 | + * Required. Params needed to support actions in the format of (Key, Value) pairs. Required |
| 70 | + * parameters for sources that support OAUTH, i.e. `gmail`, `google_calendar`, `jira`, `workday`, |
| 71 | + * `salesforce`, `confluence`: * Key: `client_id` * Value: type STRING. The client ID for the |
| 72 | + * service provider to identify your application. * Key: `client_secret` * Value:type STRING. The |
| 73 | + * client secret generated by the application's authorization server. |
| 74 | + * @return value or {@code null} for none |
| 75 | + */ |
| 76 | + public java.util.Map<String, java.lang.Object> getActionParams() { |
| 77 | + return actionParams; |
| 78 | + } |
| 79 | + |
| 80 | + /** |
| 81 | + * Required. Params needed to support actions in the format of (Key, Value) pairs. Required |
| 82 | + * parameters for sources that support OAUTH, i.e. `gmail`, `google_calendar`, `jira`, `workday`, |
| 83 | + * `salesforce`, `confluence`: * Key: `client_id` * Value: type STRING. The client ID for the |
| 84 | + * service provider to identify your application. * Key: `client_secret` * Value:type STRING. The |
| 85 | + * client secret generated by the application's authorization server. |
| 86 | + * @param actionParams actionParams or {@code null} for none |
| 87 | + */ |
| 88 | + public GoogleCloudDiscoveryengineV1ActionConfig setActionParams(java.util.Map<String, java.lang.Object> actionParams) { |
| 89 | + this.actionParams = actionParams; |
| 90 | + return this; |
| 91 | + } |
| 92 | + |
| 93 | + /** |
| 94 | + * Output only. The connector contains the necessary parameters and is configured to support |
| 95 | + * actions. |
| 96 | + * @return value or {@code null} for none |
| 97 | + */ |
| 98 | + public java.lang.Boolean getIsActionConfigured() { |
| 99 | + return isActionConfigured; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * Output only. The connector contains the necessary parameters and is configured to support |
| 104 | + * actions. |
| 105 | + * @param isActionConfigured isActionConfigured or {@code null} for none |
| 106 | + */ |
| 107 | + public GoogleCloudDiscoveryengineV1ActionConfig setIsActionConfigured(java.lang.Boolean isActionConfigured) { |
| 108 | + this.isActionConfigured = isActionConfigured; |
| 109 | + return this; |
| 110 | + } |
| 111 | + |
| 112 | + /** |
| 113 | + * Optional. The Service Directory resource name (projects/locations/namespaces/services) |
| 114 | + * representing a VPC network endpoint used to connect to the data source's `instance_uri`, |
| 115 | + * defined in DataConnector.params. Required when VPC Service Controls are enabled. |
| 116 | + * @return value or {@code null} for none |
| 117 | + */ |
| 118 | + public java.lang.String getServiceName() { |
| 119 | + return serviceName; |
| 120 | + } |
| 121 | + |
| 122 | + /** |
| 123 | + * Optional. The Service Directory resource name (projects/locations/namespaces/services) |
| 124 | + * representing a VPC network endpoint used to connect to the data source's `instance_uri`, |
| 125 | + * defined in DataConnector.params. Required when VPC Service Controls are enabled. |
| 126 | + * @param serviceName serviceName or {@code null} for none |
| 127 | + */ |
| 128 | + public GoogleCloudDiscoveryengineV1ActionConfig setServiceName(java.lang.String serviceName) { |
| 129 | + this.serviceName = serviceName; |
| 130 | + return this; |
| 131 | + } |
| 132 | + |
| 133 | + /** |
| 134 | + * Optional. Whether to use static secrets for the connector. If true, the secrets provided in the |
| 135 | + * action_params will be ignored. |
| 136 | + * @return value or {@code null} for none |
| 137 | + */ |
| 138 | + public java.lang.Boolean getUseStaticSecrets() { |
| 139 | + return useStaticSecrets; |
| 140 | + } |
| 141 | + |
| 142 | + /** |
| 143 | + * Optional. Whether to use static secrets for the connector. If true, the secrets provided in the |
| 144 | + * action_params will be ignored. |
| 145 | + * @param useStaticSecrets useStaticSecrets or {@code null} for none |
| 146 | + */ |
| 147 | + public GoogleCloudDiscoveryengineV1ActionConfig setUseStaticSecrets(java.lang.Boolean useStaticSecrets) { |
| 148 | + this.useStaticSecrets = useStaticSecrets; |
| 149 | + return this; |
| 150 | + } |
| 151 | + |
| 152 | + @Override |
| 153 | + public GoogleCloudDiscoveryengineV1ActionConfig set(String fieldName, Object value) { |
| 154 | + return (GoogleCloudDiscoveryengineV1ActionConfig) super.set(fieldName, value); |
| 155 | + } |
| 156 | + |
| 157 | + @Override |
| 158 | + public GoogleCloudDiscoveryengineV1ActionConfig clone() { |
| 159 | + return (GoogleCloudDiscoveryengineV1ActionConfig) super.clone(); |
| 160 | + } |
| 161 | + |
| 162 | +} |
0 commit comments