Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat(v1beta2): remove DOCKER/FLINK enums from Component, add fields t…
Browse files Browse the repository at this point in the history
…o ClusterConfig, InstanceGroupConfig, WorkflowTemplate, WorkflowMetadata (#411)

Breaking changes:
1. The `DOCKER` and `FLINK` values have been removed from the `Component` enum, and an `HBASE` value was added.

Other changes:

1. There is a new `temp_bucket` field in `ClusterConfig`.
2. There is a new `preemptibility` field in `InstanceGroupConfig`.
3. The `project_id` field of `JobReference` is now optional instead of required.
4. There is a new `dag_timeout` field in `WorkflowTemplate`.
5. There are new `dag_timeout`, `dag_start_time`, and `dag_end_time` fields in `WorkflowMetadata`.
6. There are various updates to the doc comments.

PiperOrigin-RevId: 347036369
Source-Link: googleapis/googleapis@6d65640
PiperOrigin-RevId: 347029491
Source-Link: googleapis/googleapis@bddb3d7
PiperOrigin-RevId: 346372957
Source-Link: googleapis/googleapis@857f70d
PiperOrigin-RevId: 346132878
Source-Link: googleapis/googleapis@565b9a5
PiperOrigin-RevId: 345127100
Source-Link: googleapis/googleapis@269083b
  • Loading branch information
yoshi-automation committed Dec 28, 2020
1 parent b02deda commit e8025d4
Show file tree
Hide file tree
Showing 134 changed files with 11,518 additions and 9,638 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* https://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.
*/

package com.google.cloud.dataproc.v1;

import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse;
Expand All @@ -34,7 +35,7 @@
import java.util.List;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link AutoscalingPolicyServiceClient}.
*
Expand All @@ -51,24 +52,26 @@
*
* <p>For example, to set the total timeout of createAutoscalingPolicy to 30 seconds:
*
* <pre>
* <code>
* <pre>{@code
* AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder =
* AutoscalingPolicyServiceSettings.newBuilder();
* autoscalingPolicyServiceSettingsBuilder
* .createAutoscalingPolicySettings()
* .setRetrySettings(
* autoscalingPolicyServiceSettingsBuilder.createAutoscalingPolicySettings().getRetrySettings().toBuilder()
* autoscalingPolicyServiceSettingsBuilder
* .createAutoscalingPolicySettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = autoscalingPolicyServiceSettingsBuilder.build();
* </code>
* </pre>
* AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
* autoscalingPolicyServiceSettingsBuilder.build();
* }</pre>
*/
@Generated("by gapic-generator")
@BetaApi
@Generated("by gapic-generator-java")
public class AutoscalingPolicyServiceSettings
extends ClientSettings<AutoscalingPolicyServiceSettings> {

/** Returns the object with the settings used for calls to createAutoscalingPolicy. */
public UnaryCallSettings<CreateAutoscalingPolicyRequest, AutoscalingPolicy>
createAutoscalingPolicySettings() {
Expand Down Expand Up @@ -168,18 +171,15 @@ protected AutoscalingPolicyServiceSettings(Builder settingsBuilder) throws IOExc
/** Builder for AutoscalingPolicyServiceSettings. */
public static class Builder
extends ClientSettings.Builder<AutoscalingPolicyServiceSettings, Builder> {

protected Builder() throws IOException {
this((ClientContext) null);
this(((ClientContext) null));
}

protected Builder(ClientContext clientContext) {
super(AutoscalingPolicyServiceStubSettings.newBuilder(clientContext));
}

private static Builder createDefault() {
return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder());
}

protected Builder(AutoscalingPolicyServiceSettings settings) {
super(settings.getStubSettings().toBuilder());
}
Expand All @@ -188,11 +188,15 @@ protected Builder(AutoscalingPolicyServiceStubSettings.Builder stubSettings) {
super(stubSettings);
}

private static Builder createDefault() {
return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder());
}

public AutoscalingPolicyServiceStubSettings.Builder getStubSettingsBuilder() {
return ((AutoscalingPolicyServiceStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'
// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
Expand Down
Loading

0 comments on commit e8025d4

Please sign in to comment.