google-cloud-workstations-v1 0.a → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/cloud/workstations/v1/bindings_override.rb +137 -0
- data/lib/google/cloud/workstations/v1/rest.rb +38 -0
- data/lib/google/cloud/workstations/v1/version.rb +7 -2
- data/lib/google/cloud/workstations/v1/workstations/client.rb +2543 -0
- data/lib/google/cloud/workstations/v1/workstations/credentials.rb +47 -0
- data/lib/google/cloud/workstations/v1/workstations/operations.rb +809 -0
- data/lib/google/cloud/workstations/v1/workstations/paths.rb +113 -0
- data/lib/google/cloud/workstations/v1/workstations/rest/client.rb +2380 -0
- data/lib/google/cloud/workstations/v1/workstations/rest/operations.rb +902 -0
- data/lib/google/cloud/workstations/v1/workstations/rest/service_stub.rb +1258 -0
- data/lib/google/cloud/workstations/v1/workstations/rest.rb +54 -0
- data/lib/google/cloud/workstations/v1/workstations.rb +56 -0
- data/lib/google/cloud/workstations/v1/workstations_pb.rb +97 -0
- data/lib/google/cloud/workstations/v1/workstations_services_pb.rb +86 -0
- data/lib/google/cloud/workstations/v1.rb +45 -0
- data/lib/google-cloud-workstations-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/workstations/v1/workstations.rb +1173 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +114 -10
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/rest"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/workstations/v1/version"
|
|
24
|
+
require "google/cloud/workstations/v1/bindings_override"
|
|
25
|
+
|
|
26
|
+
require "google/cloud/workstations/v1/workstations/credentials"
|
|
27
|
+
require "google/cloud/workstations/v1/workstations/paths"
|
|
28
|
+
require "google/cloud/workstations/v1/workstations/rest/operations"
|
|
29
|
+
require "google/cloud/workstations/v1/workstations/rest/client"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Cloud
|
|
33
|
+
module Workstations
|
|
34
|
+
module V1
|
|
35
|
+
##
|
|
36
|
+
# Service for interacting with Cloud Workstations.
|
|
37
|
+
#
|
|
38
|
+
# To load this service and instantiate a REST client:
|
|
39
|
+
#
|
|
40
|
+
# require "google/cloud/workstations/v1/workstations/rest"
|
|
41
|
+
# client = ::Google::Cloud::Workstations::V1::Workstations::Rest::Client.new
|
|
42
|
+
#
|
|
43
|
+
module Workstations
|
|
44
|
+
# Client for the REST transport
|
|
45
|
+
module Rest
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
|
54
|
+
require "google/cloud/workstations/v1/workstations/rest/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/common"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/workstations/v1/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/workstations/v1/workstations/credentials"
|
|
26
|
+
require "google/cloud/workstations/v1/workstations/paths"
|
|
27
|
+
require "google/cloud/workstations/v1/workstations/operations"
|
|
28
|
+
require "google/cloud/workstations/v1/workstations/client"
|
|
29
|
+
require "google/cloud/workstations/v1/workstations/rest"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Cloud
|
|
33
|
+
module Workstations
|
|
34
|
+
module V1
|
|
35
|
+
##
|
|
36
|
+
# Service for interacting with Cloud Workstations.
|
|
37
|
+
#
|
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
|
39
|
+
#
|
|
40
|
+
# require "google/cloud/workstations/v1/workstations"
|
|
41
|
+
# client = ::Google::Cloud::Workstations::V1::Workstations::Client.new
|
|
42
|
+
#
|
|
43
|
+
# @example Load this service and instantiate a REST client
|
|
44
|
+
#
|
|
45
|
+
# require "google/cloud/workstations/v1/workstations/rest"
|
|
46
|
+
# client = ::Google::Cloud::Workstations::V1::Workstations::Rest::Client.new
|
|
47
|
+
#
|
|
48
|
+
module Workstations
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
helper_path = ::File.join __dir__, "workstations", "helpers.rb"
|
|
56
|
+
require "google/cloud/workstations/v1/workstations/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/workstations/v1/workstations.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/annotations_pb'
|
|
8
|
+
require 'google/api/client_pb'
|
|
9
|
+
require 'google/api/field_behavior_pb'
|
|
10
|
+
require 'google/api/resource_pb'
|
|
11
|
+
require 'google/longrunning/operations_pb'
|
|
12
|
+
require 'google/protobuf/duration_pb'
|
|
13
|
+
require 'google/protobuf/field_mask_pb'
|
|
14
|
+
require 'google/protobuf/timestamp_pb'
|
|
15
|
+
require 'google/rpc/status_pb'
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
descriptor_data = "\n/google/cloud/workstations/v1/workstations.proto\x12\x1cgoogle.cloud.workstations.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x87\t\n\x12WorkstationCluster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12[\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32\x41.google.cloud.workstations.v1.WorkstationCluster.AnnotationsEntryB\x03\xe0\x41\x01\x12Q\n\x06labels\x18\x0f \x03(\x0b\x32<.google.cloud.workstations.v1.WorkstationCluster.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07network\x18\n \x01(\tB\x03\xe0\x41\x05\x12\x17\n\nsubnetwork\x18\x0b \x01(\tB\x03\xe0\x41\x05\x12\x1d\n\x10\x63ontrol_plane_ip\x18\x10 \x01(\tB\x03\xe0\x41\x03\x12j\n\x16private_cluster_config\x18\x0c \x01(\x0b\x32\x45.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigB\x03\xe0\x41\x01\x12\x15\n\x08\x64\x65graded\x18\r \x01(\x08\x42\x03\xe0\x41\x03\x12+\n\nconditions\x18\x0e \x03(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x1a\x9f\x01\n\x14PrivateClusterConfig\x12$\n\x17\x65nable_private_endpoint\x18\x01 \x01(\x08\x42\x03\xe0\x41\x05\x12\x1d\n\x10\x63luster_hostname\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16service_attachment_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x61llowed_projects\x18\x04 \x03(\tB\x03\xe0\x41\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xb3\x01\xea\x41\xaf\x01\n.workstations.googleapis.com/WorkstationCluster\x12Qprojects/{project}/locations/{location}/workstationClusters/{workstation_cluster}*\x13workstationClusters2\x12workstationClusterR\x01\x01\"\xb2\x19\n\x11WorkstationConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12Z\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32@.google.cloud.workstations.v1.WorkstationConfig.AnnotationsEntryB\x03\xe0\x41\x01\x12P\n\x06labels\x18\x12 \x03(\x0b\x32;.google.cloud.workstations.v1.WorkstationConfig.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0cidle_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x37\n\x0frunning_timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12G\n\x04host\x18\x0c \x01(\x0b\x32\x34.google.cloud.workstations.v1.WorkstationConfig.HostB\x03\xe0\x41\x01\x12h\n\x16persistent_directories\x18\r \x03(\x0b\x32\x43.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryB\x03\xe0\x41\x01\x12Q\n\tcontainer\x18\x0e \x01(\x0b\x32\x39.google.cloud.workstations.v1.WorkstationConfig.ContainerB\x03\xe0\x41\x01\x12\x62\n\x0e\x65ncryption_key\x18\x11 \x01(\x0b\x32\x45.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyB\x03\xe0\x41\x05\x12]\n\x10readiness_checks\x18\x13 \x03(\x0b\x32>.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckB\x03\xe0\x41\x01\x12\x1d\n\rreplica_zones\x18\x17 \x03(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x15\n\x08\x64\x65graded\x18\x0f \x01(\x08\x42\x03\xe0\x41\x03\x12+\n\nconditions\x18\x10 \x03(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x1a\xf5\x06\n\x04Host\x12X\n\x0cgce_instance\x18\x01 \x01(\x0b\x32@.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceH\x00\x1a\x88\x06\n\x0bGceInstance\x12\x19\n\x0cmachine_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16service_account_scopes\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x11\n\x04tags\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tpool_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1d\n\x10pooled_instances\x18\x0c \x01(\x05\x42\x03\xe0\x41\x03\x12(\n\x1b\x64isable_public_ip_addresses\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12)\n\x1c\x65nable_nested_virtualization\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x12\x81\x01\n\x18shielded_instance_config\x18\x08 \x01(\x0b\x32Z.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigB\x03\xe0\x41\x01\x12\x89\x01\n\x1c\x63onfidential_instance_config\x18\n \x01(\x0b\x32^.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigB\x03\xe0\x41\x01\x12\x1e\n\x11\x62oot_disk_size_gb\x18\t \x01(\x05\x42\x03\xe0\x41\x01\x1a\x80\x01\n\x19GceShieldedInstanceConfig\x12\x1f\n\x12\x65nable_secure_boot\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0b\x65nable_vtpm\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12(\n\x1b\x65nable_integrity_monitoring\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x1aI\n\x1dGceConfidentialInstanceConfig\x12(\n\x1b\x65nable_confidential_compute\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x42\x08\n\x06\x63onfig\x1a\x85\x04\n\x13PersistentDirectory\x12o\n\x06gce_pd\x18\x02 \x01(\x0b\x32].google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskH\x00\x12\x17\n\nmount_path\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a\xd1\x02\n\x19GceRegionalPersistentDisk\x12\x14\n\x07size_gb\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x14\n\x07\x66s_type\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tdisk_type\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fsource_snapshot\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x88\x01\n\x0ereclaim_policy\x18\x04 \x01(\x0e\x32k.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicyB\x03\xe0\x41\x01\"G\n\rReclaimPolicy\x12\x1e\n\x1aRECLAIM_POLICY_UNSPECIFIED\x10\x00\x12\n\n\x06\x44\x45LETE\x10\x01\x12\n\n\x06RETAIN\x10\x02\x42\x10\n\x0e\x64irectory_type\x1a\xfe\x01\n\tContainer\x12\x12\n\x05image\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07\x63ommand\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x11\n\x04\x61rgs\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12T\n\x03\x65nv\x18\x04 \x03(\x0b\x32\x42.google.cloud.workstations.v1.WorkstationConfig.Container.EnvEntryB\x03\xe0\x41\x01\x12\x18\n\x0bworking_dir\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0brun_as_user\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x1a*\n\x08\x45nvEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aS\n\x15\x43ustomerEncryptionKey\x12\x14\n\x07kms_key\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12$\n\x17kms_key_service_account\x18\x02 \x01(\tB\x03\xe0\x41\x05\x1a\x36\n\x0eReadinessCheck\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04port\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xd8\x01\xea\x41\xd4\x01\n-workstations.googleapis.com/WorkstationConfig\x12yprojects/{project}/locations/{location}/workstationClusters/{workstation_cluster}/workstationConfigs/{workstation_config}*\x12workstationConfigs2\x11workstationConfigR\x01\x01\"\xfc\x07\n\x0bWorkstation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12T\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32:.google.cloud.workstations.v1.Workstation.AnnotationsEntryB\x03\xe0\x41\x01\x12J\n\x06labels\x18\r \x03(\x0b\x32\x35.google.cloud.workstations.v1.Workstation.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x43\n\x05state\x18\n \x01(\x0e\x32/.google.cloud.workstations.v1.Workstation.StateB\x03\xe0\x41\x03\x12\x11\n\x04host\x18\x0b \x01(\tB\x03\xe0\x41\x03\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"l\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTATE_STARTING\x10\x01\x12\x11\n\rSTATE_RUNNING\x10\x02\x12\x12\n\x0eSTATE_STOPPING\x10\x03\x12\x11\n\rSTATE_STOPPED\x10\x04:\xe2\x01\xea\x41\xde\x01\n\'workstations.googleapis.com/Workstation\x12\x94\x01projects/{project}/locations/{location}/workstationClusters/{workstation_cluster}/workstationConfigs/{workstation_config}/workstations/{workstation}*\x0cworkstations2\x0bworkstationR\x01\x01\"d\n\x1cGetWorkstationClusterRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.workstations.googleapis.com/WorkstationCluster\"\x99\x01\n\x1eListWorkstationClustersRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.workstations.googleapis.com/WorkstationCluster\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9f\x01\n\x1fListWorkstationClustersResponse\x12N\n\x14workstation_clusters\x18\x01 \x03(\x0b\x32\x30.google.cloud.workstations.v1.WorkstationCluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xfe\x01\n\x1f\x43reateWorkstationClusterRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.workstations.googleapis.com/WorkstationCluster\x12#\n\x16workstation_cluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12R\n\x13workstation_cluster\x18\x03 \x01(\x0b\x32\x30.google.cloud.workstations.v1.WorkstationClusterB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xe3\x01\n\x1fUpdateWorkstationClusterRequest\x12R\n\x13workstation_cluster\x18\x01 \x01(\x0b\x32\x30.google.cloud.workstations.v1.WorkstationClusterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xaa\x01\n\x1f\x44\x65leteWorkstationClusterRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.workstations.googleapis.com/WorkstationCluster\x12\x1a\n\rvalidate_only\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"b\n\x1bGetWorkstationConfigRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-workstations.googleapis.com/WorkstationConfig\"\x98\x01\n\x1dListWorkstationConfigsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.workstations.googleapis.com/WorkstationCluster\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9c\x01\n\x1eListWorkstationConfigsResponse\x12L\n\x13workstation_configs\x18\x01 \x03(\x0b\x32/.google.cloud.workstations.v1.WorkstationConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x9e\x01\n#ListUsableWorkstationConfigsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.workstations.googleapis.com/WorkstationCluster\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa2\x01\n$ListUsableWorkstationConfigsResponse\x12L\n\x13workstation_configs\x18\x01 \x03(\x0b\x32/.google.cloud.workstations.v1.WorkstationConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xfa\x01\n\x1e\x43reateWorkstationConfigRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.workstations.googleapis.com/WorkstationCluster\x12\"\n\x15workstation_config_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x12workstation_config\x18\x03 \x01(\x0b\x32/.google.cloud.workstations.v1.WorkstationConfigB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xe0\x01\n\x1eUpdateWorkstationConfigRequest\x12P\n\x12workstation_config\x18\x01 \x01(\x0b\x32/.google.cloud.workstations.v1.WorkstationConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xa8\x01\n\x1e\x44\x65leteWorkstationConfigRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-workstations.googleapis.com/WorkstationConfig\x12\x1a\n\rvalidate_only\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"V\n\x15GetWorkstationRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'workstations.googleapis.com/Workstation\"\x91\x01\n\x17ListWorkstationsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-workstations.googleapis.com/WorkstationConfig\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x93\x01\n\x18ListWorkstationsResponse\x12?\n\x0cworkstations\x18\x01 \x03(\x0b\x32).google.cloud.workstations.v1.Workstation\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x01\"\x97\x01\n\x1dListUsableWorkstationsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-workstations.googleapis.com/WorkstationConfig\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8f\x01\n\x1eListUsableWorkstationsResponse\x12?\n\x0cworkstations\x18\x01 \x03(\x0b\x32).google.cloud.workstations.v1.Workstation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xdf\x01\n\x18\x43reateWorkstationRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-workstations.googleapis.com/WorkstationConfig\x12\x1b\n\x0eworkstation_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x43\n\x0bworkstation\x18\x03 \x01(\x0b\x32).google.cloud.workstations.v1.WorkstationB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xcd\x01\n\x18UpdateWorkstationRequest\x12\x43\n\x0bworkstation\x18\x01 \x01(\x0b\x32).google.cloud.workstations.v1.WorkstationB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x88\x01\n\x18\x44\x65leteWorkstationRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'workstations.googleapis.com/Workstation\x12\x1a\n\rvalidate_only\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x87\x01\n\x17StartWorkstationRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'workstations.googleapis.com/Workstation\x12\x1a\n\rvalidate_only\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x86\x01\n\x16StopWorkstationRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'workstations.googleapis.com/Workstation\x12\x1a\n\rvalidate_only\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xcd\x01\n\x1aGenerateAccessTokenRequest\x12\x31\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12(\n\x03ttl\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x44\n\x0bworkstation\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'workstations.googleapis.com/WorkstationB\x0c\n\nexpiration\"d\n\x1bGenerateAccessTokenResponse\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\x9b*\n\x0cWorkstations\x12\xcd\x01\n\x15GetWorkstationCluster\x12:.google.cloud.workstations.v1.GetWorkstationClusterRequest\x1a\x30.google.cloud.workstations.v1.WorkstationCluster\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{name=projects/*/locations/*/workstationClusters/*}\x12\xe0\x01\n\x17ListWorkstationClusters\x12<.google.cloud.workstations.v1.ListWorkstationClustersRequest\x1a=.google.cloud.workstations.v1.ListWorkstationClustersResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}/workstationClusters\x12\xad\x02\n\x18\x43reateWorkstationCluster\x12=.google.cloud.workstations.v1.CreateWorkstationClusterRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41\'\n\x12WorkstationCluster\x12\x11OperationMetadata\xda\x41\x31parent,workstation_cluster,workstation_cluster_id\x82\xd3\xe4\x93\x02N\"7/v1/{parent=projects/*/locations/*}/workstationClusters:\x13workstation_cluster\x12\xaf\x02\n\x18UpdateWorkstationCluster\x12=.google.cloud.workstations.v1.UpdateWorkstationClusterRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xca\x41\'\n\x12WorkstationCluster\x12\x11OperationMetadata\xda\x41\x1fworkstation_cluster,update_mask\x82\xd3\xe4\x93\x02\x62\x32K/v1/{workstation_cluster.name=projects/*/locations/*/workstationClusters/*}:\x13workstation_cluster\x12\xea\x01\n\x18\x44\x65leteWorkstationCluster\x12=.google.cloud.workstations.v1.DeleteWorkstationClusterRequest\x1a\x1d.google.longrunning.Operation\"p\xca\x41\'\n\x12WorkstationCluster\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1/{name=projects/*/locations/*/workstationClusters/*}\x12\xdf\x01\n\x14GetWorkstationConfig\x12\x39.google.cloud.workstations.v1.GetWorkstationConfigRequest\x1a/.google.cloud.workstations.v1.WorkstationConfig\"[\xda\x41\x04name\x82\xd3\xe4\x93\x02N\x12L/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}\x12\xf2\x01\n\x16ListWorkstationConfigs\x12;.google.cloud.workstations.v1.ListWorkstationConfigsRequest\x1a<.google.cloud.workstations.v1.ListWorkstationConfigsResponse\"]\xda\x41\x06parent\x82\xd3\xe4\x93\x02N\x12L/v1/{parent=projects/*/locations/*/workstationClusters/*}/workstationConfigs\x12\x8f\x02\n\x1cListUsableWorkstationConfigs\x12\x41.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest\x1a\x42.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse\"h\xda\x41\x06parent\x82\xd3\xe4\x93\x02Y\x12W/v1/{parent=projects/*/locations/*/workstationClusters/*}/workstationConfigs:listUsable\x12\xbc\x02\n\x17\x43reateWorkstationConfig\x12<.google.cloud.workstations.v1.CreateWorkstationConfigRequest\x1a\x1d.google.longrunning.Operation\"\xc3\x01\xca\x41&\n\x11WorkstationConfig\x12\x11OperationMetadata\xda\x41/parent,workstation_config,workstation_config_id\x82\xd3\xe4\x93\x02\x62\"L/v1/{parent=projects/*/locations/*/workstationClusters/*}/workstationConfigs:\x12workstation_config\x12\xbe\x02\n\x17UpdateWorkstationConfig\x12<.google.cloud.workstations.v1.UpdateWorkstationConfigRequest\x1a\x1d.google.longrunning.Operation\"\xc5\x01\xca\x41&\n\x11WorkstationConfig\x12\x11OperationMetadata\xda\x41\x1eworkstation_config,update_mask\x82\xd3\xe4\x93\x02u2_/v1/{workstation_config.name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}:\x12workstation_config\x12\xfd\x01\n\x17\x44\x65leteWorkstationConfig\x12<.google.cloud.workstations.v1.DeleteWorkstationConfigRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\xca\x41&\n\x11WorkstationConfig\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02N*L/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}\x12\xdc\x01\n\x0eGetWorkstation\x12\x33.google.cloud.workstations.v1.GetWorkstationRequest\x1a).google.cloud.workstations.v1.Workstation\"j\xda\x41\x04name\x82\xd3\xe4\x93\x02]\x12[/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}\x12\xef\x01\n\x10ListWorkstations\x12\x35.google.cloud.workstations.v1.ListWorkstationsRequest\x1a\x36.google.cloud.workstations.v1.ListWorkstationsResponse\"l\xda\x41\x06parent\x82\xd3\xe4\x93\x02]\x12[/v1/{parent=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}/workstations\x12\x8c\x02\n\x16ListUsableWorkstations\x12;.google.cloud.workstations.v1.ListUsableWorkstationsRequest\x1a<.google.cloud.workstations.v1.ListUsableWorkstationsResponse\"w\xda\x41\x06parent\x82\xd3\xe4\x93\x02h\x12\x66/v1/{parent=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}/workstations:listUsable\x12\xa4\x02\n\x11\x43reateWorkstation\x12\x36.google.cloud.workstations.v1.CreateWorkstationRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\xca\x41 \n\x0bWorkstation\x12\x11OperationMetadata\xda\x41!parent,workstation,workstation_id\x82\xd3\xe4\x93\x02j\"[/v1/{parent=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}/workstations:\x0bworkstation\x12\xa6\x02\n\x11UpdateWorkstation\x12\x36.google.cloud.workstations.v1.UpdateWorkstationRequest\x1a\x1d.google.longrunning.Operation\"\xb9\x01\xca\x41 \n\x0bWorkstation\x12\x11OperationMetadata\xda\x41\x17workstation,update_mask\x82\xd3\xe4\x93\x02v2g/v1/{workstation.name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:\x0bworkstation\x12\xfa\x01\n\x11\x44\x65leteWorkstation\x12\x36.google.cloud.workstations.v1.DeleteWorkstationRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x01\xca\x41 \n\x0bWorkstation\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02]*[/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}\x12\x81\x02\n\x10StartWorkstation\x12\x35.google.cloud.workstations.v1.StartWorkstationRequest\x1a\x1d.google.longrunning.Operation\"\x96\x01\xca\x41 \n\x0bWorkstation\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x66\"a/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:start:\x01*\x12\xfe\x01\n\x0fStopWorkstation\x12\x34.google.cloud.workstations.v1.StopWorkstationRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41 \n\x0bWorkstation\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x65\"`/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:stop:\x01*\x12\x9c\x02\n\x13GenerateAccessToken\x12\x38.google.cloud.workstations.v1.GenerateAccessTokenRequest\x1a\x39.google.cloud.workstations.v1.GenerateAccessTokenResponse\"\x8f\x01\xda\x41\x0bworkstation\x82\xd3\xe4\x93\x02{\"v/v1/{workstation=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:generateAccessToken:\x01*\x1aO\xca\x41\x1bworkstations.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB}\n com.google.cloud.workstations.v1B\x11WorkstationsProtoP\x01ZDcloud.google.com/go/workstations/apiv1/workstationspb;workstationspbb\x06proto3"
|
|
19
|
+
|
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
21
|
+
|
|
22
|
+
begin
|
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
|
24
|
+
rescue TypeError
|
|
25
|
+
# Compatibility code: will be removed in the next major version.
|
|
26
|
+
require 'google/protobuf/descriptor_pb'
|
|
27
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
28
|
+
parsed.clear_dependency
|
|
29
|
+
serialized = parsed.class.encode(parsed)
|
|
30
|
+
file = pool.add_serialized_file(serialized)
|
|
31
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
32
|
+
imports = [
|
|
33
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
34
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
|
35
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
|
36
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
|
37
|
+
]
|
|
38
|
+
imports.each do |type_name, expected_filename|
|
|
39
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
40
|
+
if import_file.name != expected_filename
|
|
41
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
45
|
+
warn "This will become an error in the next major version."
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
module Google
|
|
49
|
+
module Cloud
|
|
50
|
+
module Workstations
|
|
51
|
+
module V1
|
|
52
|
+
WorkstationCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.WorkstationCluster").msgclass
|
|
53
|
+
WorkstationCluster::PrivateClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig").msgclass
|
|
54
|
+
WorkstationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.WorkstationConfig").msgclass
|
|
55
|
+
WorkstationConfig::Host = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.WorkstationConfig.Host").msgclass
|
|
56
|
+
WorkstationConfig::Host::GceInstance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance").msgclass
|
|
57
|
+
WorkstationConfig::Host::GceInstance::GceShieldedInstanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig").msgclass
|
|
58
|
+
WorkstationConfig::Host::GceInstance::GceConfidentialInstanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig").msgclass
|
|
59
|
+
WorkstationConfig::PersistentDirectory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory").msgclass
|
|
60
|
+
WorkstationConfig::PersistentDirectory::GceRegionalPersistentDisk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk").msgclass
|
|
61
|
+
WorkstationConfig::PersistentDirectory::GceRegionalPersistentDisk::ReclaimPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy").enummodule
|
|
62
|
+
WorkstationConfig::Container = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.WorkstationConfig.Container").msgclass
|
|
63
|
+
WorkstationConfig::CustomerEncryptionKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey").msgclass
|
|
64
|
+
WorkstationConfig::ReadinessCheck = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck").msgclass
|
|
65
|
+
Workstation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.Workstation").msgclass
|
|
66
|
+
Workstation::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.Workstation.State").enummodule
|
|
67
|
+
GetWorkstationClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.GetWorkstationClusterRequest").msgclass
|
|
68
|
+
ListWorkstationClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.ListWorkstationClustersRequest").msgclass
|
|
69
|
+
ListWorkstationClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.ListWorkstationClustersResponse").msgclass
|
|
70
|
+
CreateWorkstationClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.CreateWorkstationClusterRequest").msgclass
|
|
71
|
+
UpdateWorkstationClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.UpdateWorkstationClusterRequest").msgclass
|
|
72
|
+
DeleteWorkstationClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.DeleteWorkstationClusterRequest").msgclass
|
|
73
|
+
GetWorkstationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.GetWorkstationConfigRequest").msgclass
|
|
74
|
+
ListWorkstationConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.ListWorkstationConfigsRequest").msgclass
|
|
75
|
+
ListWorkstationConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.ListWorkstationConfigsResponse").msgclass
|
|
76
|
+
ListUsableWorkstationConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest").msgclass
|
|
77
|
+
ListUsableWorkstationConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse").msgclass
|
|
78
|
+
CreateWorkstationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.CreateWorkstationConfigRequest").msgclass
|
|
79
|
+
UpdateWorkstationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.UpdateWorkstationConfigRequest").msgclass
|
|
80
|
+
DeleteWorkstationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.DeleteWorkstationConfigRequest").msgclass
|
|
81
|
+
GetWorkstationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.GetWorkstationRequest").msgclass
|
|
82
|
+
ListWorkstationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.ListWorkstationsRequest").msgclass
|
|
83
|
+
ListWorkstationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.ListWorkstationsResponse").msgclass
|
|
84
|
+
ListUsableWorkstationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.ListUsableWorkstationsRequest").msgclass
|
|
85
|
+
ListUsableWorkstationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.ListUsableWorkstationsResponse").msgclass
|
|
86
|
+
CreateWorkstationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.CreateWorkstationRequest").msgclass
|
|
87
|
+
UpdateWorkstationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.UpdateWorkstationRequest").msgclass
|
|
88
|
+
DeleteWorkstationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.DeleteWorkstationRequest").msgclass
|
|
89
|
+
StartWorkstationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.StartWorkstationRequest").msgclass
|
|
90
|
+
StopWorkstationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.StopWorkstationRequest").msgclass
|
|
91
|
+
GenerateAccessTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.GenerateAccessTokenRequest").msgclass
|
|
92
|
+
GenerateAccessTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.GenerateAccessTokenResponse").msgclass
|
|
93
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1.OperationMetadata").msgclass
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/workstations/v1/workstations.proto for package 'google.cloud.workstations.v1'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2024 Google LLC
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/workstations/v1/workstations_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module Workstations
|
|
25
|
+
module V1
|
|
26
|
+
module Workstations
|
|
27
|
+
# Service for interacting with Cloud Workstations.
|
|
28
|
+
class Service
|
|
29
|
+
|
|
30
|
+
include ::GRPC::GenericService
|
|
31
|
+
|
|
32
|
+
self.marshal_class_method = :encode
|
|
33
|
+
self.unmarshal_class_method = :decode
|
|
34
|
+
self.service_name = 'google.cloud.workstations.v1.Workstations'
|
|
35
|
+
|
|
36
|
+
# Returns the requested workstation cluster.
|
|
37
|
+
rpc :GetWorkstationCluster, ::Google::Cloud::Workstations::V1::GetWorkstationClusterRequest, ::Google::Cloud::Workstations::V1::WorkstationCluster
|
|
38
|
+
# Returns all workstation clusters in the specified location.
|
|
39
|
+
rpc :ListWorkstationClusters, ::Google::Cloud::Workstations::V1::ListWorkstationClustersRequest, ::Google::Cloud::Workstations::V1::ListWorkstationClustersResponse
|
|
40
|
+
# Creates a new workstation cluster.
|
|
41
|
+
rpc :CreateWorkstationCluster, ::Google::Cloud::Workstations::V1::CreateWorkstationClusterRequest, ::Google::Longrunning::Operation
|
|
42
|
+
# Updates an existing workstation cluster.
|
|
43
|
+
rpc :UpdateWorkstationCluster, ::Google::Cloud::Workstations::V1::UpdateWorkstationClusterRequest, ::Google::Longrunning::Operation
|
|
44
|
+
# Deletes the specified workstation cluster.
|
|
45
|
+
rpc :DeleteWorkstationCluster, ::Google::Cloud::Workstations::V1::DeleteWorkstationClusterRequest, ::Google::Longrunning::Operation
|
|
46
|
+
# Returns the requested workstation configuration.
|
|
47
|
+
rpc :GetWorkstationConfig, ::Google::Cloud::Workstations::V1::GetWorkstationConfigRequest, ::Google::Cloud::Workstations::V1::WorkstationConfig
|
|
48
|
+
# Returns all workstation configurations in the specified cluster.
|
|
49
|
+
rpc :ListWorkstationConfigs, ::Google::Cloud::Workstations::V1::ListWorkstationConfigsRequest, ::Google::Cloud::Workstations::V1::ListWorkstationConfigsResponse
|
|
50
|
+
# Returns all workstation configurations in the specified cluster on which
|
|
51
|
+
# the caller has the "workstations.workstation.create" permission.
|
|
52
|
+
rpc :ListUsableWorkstationConfigs, ::Google::Cloud::Workstations::V1::ListUsableWorkstationConfigsRequest, ::Google::Cloud::Workstations::V1::ListUsableWorkstationConfigsResponse
|
|
53
|
+
# Creates a new workstation configuration.
|
|
54
|
+
rpc :CreateWorkstationConfig, ::Google::Cloud::Workstations::V1::CreateWorkstationConfigRequest, ::Google::Longrunning::Operation
|
|
55
|
+
# Updates an existing workstation configuration.
|
|
56
|
+
rpc :UpdateWorkstationConfig, ::Google::Cloud::Workstations::V1::UpdateWorkstationConfigRequest, ::Google::Longrunning::Operation
|
|
57
|
+
# Deletes the specified workstation configuration.
|
|
58
|
+
rpc :DeleteWorkstationConfig, ::Google::Cloud::Workstations::V1::DeleteWorkstationConfigRequest, ::Google::Longrunning::Operation
|
|
59
|
+
# Returns the requested workstation.
|
|
60
|
+
rpc :GetWorkstation, ::Google::Cloud::Workstations::V1::GetWorkstationRequest, ::Google::Cloud::Workstations::V1::Workstation
|
|
61
|
+
# Returns all Workstations using the specified workstation configuration.
|
|
62
|
+
rpc :ListWorkstations, ::Google::Cloud::Workstations::V1::ListWorkstationsRequest, ::Google::Cloud::Workstations::V1::ListWorkstationsResponse
|
|
63
|
+
# Returns all workstations using the specified workstation configuration
|
|
64
|
+
# on which the caller has the "workstations.workstations.use" permission.
|
|
65
|
+
rpc :ListUsableWorkstations, ::Google::Cloud::Workstations::V1::ListUsableWorkstationsRequest, ::Google::Cloud::Workstations::V1::ListUsableWorkstationsResponse
|
|
66
|
+
# Creates a new workstation.
|
|
67
|
+
rpc :CreateWorkstation, ::Google::Cloud::Workstations::V1::CreateWorkstationRequest, ::Google::Longrunning::Operation
|
|
68
|
+
# Updates an existing workstation.
|
|
69
|
+
rpc :UpdateWorkstation, ::Google::Cloud::Workstations::V1::UpdateWorkstationRequest, ::Google::Longrunning::Operation
|
|
70
|
+
# Deletes the specified workstation.
|
|
71
|
+
rpc :DeleteWorkstation, ::Google::Cloud::Workstations::V1::DeleteWorkstationRequest, ::Google::Longrunning::Operation
|
|
72
|
+
# Starts running a workstation so that users can connect to it.
|
|
73
|
+
rpc :StartWorkstation, ::Google::Cloud::Workstations::V1::StartWorkstationRequest, ::Google::Longrunning::Operation
|
|
74
|
+
# Stops running a workstation, reducing costs.
|
|
75
|
+
rpc :StopWorkstation, ::Google::Cloud::Workstations::V1::StopWorkstationRequest, ::Google::Longrunning::Operation
|
|
76
|
+
# Returns a short-lived credential that can be used to send authenticated and
|
|
77
|
+
# authorized traffic to a workstation.
|
|
78
|
+
rpc :GenerateAccessToken, ::Google::Cloud::Workstations::V1::GenerateAccessTokenRequest, ::Google::Cloud::Workstations::V1::GenerateAccessTokenResponse
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
Stub = Service.rpc_stub_class
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/workstations/v1/workstations"
|
|
20
|
+
require "google/cloud/workstations/v1/version"
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module Workstations
|
|
25
|
+
##
|
|
26
|
+
# API client module.
|
|
27
|
+
#
|
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
|
29
|
+
#
|
|
30
|
+
# require "google/cloud/workstations/v1"
|
|
31
|
+
# client = ::Google::Cloud::Workstations::V1::Workstations::Client.new
|
|
32
|
+
#
|
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
|
34
|
+
#
|
|
35
|
+
# require "google/cloud/workstations/v1"
|
|
36
|
+
# client = ::Google::Cloud::Workstations::V1::Workstations::Rest::Client.new
|
|
37
|
+
#
|
|
38
|
+
module V1
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
|
45
|
+
require "google/cloud/workstations/v1/_helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
|
21
|
+
# require "google/cloud/workstations/v1"
|