This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Datastream API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OauthRefreshTokenCredentials extends com.google.api.client.json.GenericJson { + + /** + * Required. Specifies the OAuth Client Credentials. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OauthClientCredentials oauthClientCredentials; + + /** + * Required. Specifies the OAuth Refresh Token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Secret refreshToken; + + /** + * Required. Specifies the OAuth Client Credentials. + * @return value or {@code null} for none + */ + public OauthClientCredentials getOauthClientCredentials() { + return oauthClientCredentials; + } + + /** + * Required. Specifies the OAuth Client Credentials. + * @param oauthClientCredentials oauthClientCredentials or {@code null} for none + */ + public OauthRefreshTokenCredentials setOauthClientCredentials(OauthClientCredentials oauthClientCredentials) { + this.oauthClientCredentials = oauthClientCredentials; + return this; + } + + /** + * Required. Specifies the OAuth Refresh Token. + * @return value or {@code null} for none + */ + public Secret getRefreshToken() { + return refreshToken; + } + + /** + * Required. Specifies the OAuth Refresh Token. + * @param refreshToken refreshToken or {@code null} for none + */ + public OauthRefreshTokenCredentials setRefreshToken(Secret refreshToken) { + this.refreshToken = refreshToken; + return this; + } + + @Override + public OauthRefreshTokenCredentials set(String fieldName, Object value) { + return (OauthRefreshTokenCredentials) super.set(fieldName, value); + } + + @Override + public OauthRefreshTokenCredentials clone() { + return (OauthRefreshTokenCredentials) super.clone(); + } + +} diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/SourceConfig.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/SourceConfig.java index 92f409e3795..bacc4ffa07c 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/SourceConfig.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/SourceConfig.java @@ -107,6 +107,13 @@ public final class SourceConfig extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private SqlServerSourceConfig sqlServerSourceConfig; + /** + * Optional. Workday data source configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private WorkdaySourceConfig workdaySourceConfig; + /** * Dataverse data source configuration. * @return value or {@code null} for none @@ -296,6 +303,23 @@ public SourceConfig setSqlServerSourceConfig(SqlServerSourceConfig sqlServerSour return this; } + /** + * Optional. Workday data source configuration. + * @return value or {@code null} for none + */ + public WorkdaySourceConfig getWorkdaySourceConfig() { + return workdaySourceConfig; + } + + /** + * Optional. Workday data source configuration. + * @param workdaySourceConfig workdaySourceConfig or {@code null} for none + */ + public SourceConfig setWorkdaySourceConfig(WorkdaySourceConfig workdaySourceConfig) { + this.workdaySourceConfig = workdaySourceConfig; + return this; + } + @Override public SourceConfig set(String fieldName, Object value) { return (SourceConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/WorkdayProfile.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/WorkdayProfile.java new file mode 100644 index 00000000000..53e362e7fa3 --- /dev/null +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/WorkdayProfile.java @@ -0,0 +1,120 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.datastream.v1.model; + +/** + * Profile for connecting to a Workday source. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Datastream API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class WorkdayProfile extends com.google.api.client.json.GenericJson { + + /** + * Required. Host for the Workday connection. Must be a valid hostname (e.g., `wd3-impl- + * services1.workday.com`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * Required. Credentials for authenticating with the Workday API. OAuth Refresh Token credentials + * for authenticating with the Workday API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OauthRefreshTokenCredentials oauthRefreshTokenCredentials; + + /** + * Required. Tenant for the Workday connection (e.g., `google12`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tenant; + + /** + * Required. Host for the Workday connection. Must be a valid hostname (e.g., `wd3-impl- + * services1.workday.com`). + * @return value or {@code null} for none + */ + public java.lang.String getHost() { + return host; + } + + /** + * Required. Host for the Workday connection. Must be a valid hostname (e.g., `wd3-impl- + * services1.workday.com`). + * @param host host or {@code null} for none + */ + public WorkdayProfile setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * Required. Credentials for authenticating with the Workday API. OAuth Refresh Token credentials + * for authenticating with the Workday API. + * @return value or {@code null} for none + */ + public OauthRefreshTokenCredentials getOauthRefreshTokenCredentials() { + return oauthRefreshTokenCredentials; + } + + /** + * Required. Credentials for authenticating with the Workday API. OAuth Refresh Token credentials + * for authenticating with the Workday API. + * @param oauthRefreshTokenCredentials oauthRefreshTokenCredentials or {@code null} for none + */ + public WorkdayProfile setOauthRefreshTokenCredentials(OauthRefreshTokenCredentials oauthRefreshTokenCredentials) { + this.oauthRefreshTokenCredentials = oauthRefreshTokenCredentials; + return this; + } + + /** + * Required. Tenant for the Workday connection (e.g., `google12`). + * @return value or {@code null} for none + */ + public java.lang.String getTenant() { + return tenant; + } + + /** + * Required. Tenant for the Workday connection (e.g., `google12`). + * @param tenant tenant or {@code null} for none + */ + public WorkdayProfile setTenant(java.lang.String tenant) { + this.tenant = tenant; + return this; + } + + @Override + public WorkdayProfile set(String fieldName, Object value) { + return (WorkdayProfile) super.set(fieldName, value); + } + + @Override + public WorkdayProfile clone() { + return (WorkdayProfile) super.clone(); + } + +} diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/WorkdaySourceConfig.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/WorkdaySourceConfig.java new file mode 100644 index 00000000000..981089208ef --- /dev/null +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/WorkdaySourceConfig.java @@ -0,0 +1,117 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.datastream.v1.model; + +/** + * Configuration for syncing data from a Workday source. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Datastream API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class WorkdaySourceConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The objects to exclude from the stream. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SourceCatalog excludeObjects; + + /** + * Optional. The objects to retrieve from the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SourceCatalog includeObjects; + + /** + * Required. Incremental sync polling interval for all objects. If not set, a default value of `5 + * minutes` is used. The duration must be from `5 minutes` to `24 hours`, inclusive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String pollingInterval; + + /** + * Optional. The objects to exclude from the stream. + * @return value or {@code null} for none + */ + public SourceCatalog getExcludeObjects() { + return excludeObjects; + } + + /** + * Optional. The objects to exclude from the stream. + * @param excludeObjects excludeObjects or {@code null} for none + */ + public WorkdaySourceConfig setExcludeObjects(SourceCatalog excludeObjects) { + this.excludeObjects = excludeObjects; + return this; + } + + /** + * Optional. The objects to retrieve from the source. + * @return value or {@code null} for none + */ + public SourceCatalog getIncludeObjects() { + return includeObjects; + } + + /** + * Optional. The objects to retrieve from the source. + * @param includeObjects includeObjects or {@code null} for none + */ + public WorkdaySourceConfig setIncludeObjects(SourceCatalog includeObjects) { + this.includeObjects = includeObjects; + return this; + } + + /** + * Required. Incremental sync polling interval for all objects. If not set, a default value of `5 + * minutes` is used. The duration must be from `5 minutes` to `24 hours`, inclusive. + * @return value or {@code null} for none + */ + public String getPollingInterval() { + return pollingInterval; + } + + /** + * Required. Incremental sync polling interval for all objects. If not set, a default value of `5 + * minutes` is used. The duration must be from `5 minutes` to `24 hours`, inclusive. + * @param pollingInterval pollingInterval or {@code null} for none + */ + public WorkdaySourceConfig setPollingInterval(String pollingInterval) { + this.pollingInterval = pollingInterval; + return this; + } + + @Override + public WorkdaySourceConfig set(String fieldName, Object value) { + return (WorkdaySourceConfig) super.set(fieldName, value); + } + + @Override + public WorkdaySourceConfig clone() { + return (WorkdaySourceConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-datastream/v1/2.0.0/pom.xml b/clients/google-api-services-datastream/v1/2.0.0/pom.xml index a4055b0ada2..4981e811233 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/pom.xml +++ b/clients/google-api-services-datastream/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@