google-cloud-workstations-v1beta 0.a → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/cloud/workstations/v1beta/bindings_override.rb +137 -0
- data/lib/google/cloud/workstations/v1beta/rest.rb +38 -0
- data/lib/google/cloud/workstations/v1beta/version.rb +7 -2
- data/lib/google/cloud/workstations/v1beta/workstations/client.rb +2543 -0
- data/lib/google/cloud/workstations/v1beta/workstations/credentials.rb +47 -0
- data/lib/google/cloud/workstations/v1beta/workstations/operations.rb +809 -0
- data/lib/google/cloud/workstations/v1beta/workstations/paths.rb +113 -0
- data/lib/google/cloud/workstations/v1beta/workstations/rest/client.rb +2380 -0
- data/lib/google/cloud/workstations/v1beta/workstations/rest/operations.rb +902 -0
- data/lib/google/cloud/workstations/v1beta/workstations/rest/service_stub.rb +1258 -0
- data/lib/google/cloud/workstations/v1beta/workstations/rest.rb +54 -0
- data/lib/google/cloud/workstations/v1beta/workstations.rb +56 -0
- data/lib/google/cloud/workstations/v1beta/workstations_pb.rb +100 -0
- data/lib/google/cloud/workstations/v1beta/workstations_services_pb.rb +86 -0
- data/lib/google/cloud/workstations/v1beta.rb +45 -0
- data/lib/google-cloud-workstations-v1beta.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/v1beta/workstations.rb +1261 -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/v1beta/version"
|
24
|
+
require "google/cloud/workstations/v1beta/bindings_override"
|
25
|
+
|
26
|
+
require "google/cloud/workstations/v1beta/workstations/credentials"
|
27
|
+
require "google/cloud/workstations/v1beta/workstations/paths"
|
28
|
+
require "google/cloud/workstations/v1beta/workstations/rest/operations"
|
29
|
+
require "google/cloud/workstations/v1beta/workstations/rest/client"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module Workstations
|
34
|
+
module V1beta
|
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/v1beta/workstations/rest"
|
41
|
+
# client = ::Google::Cloud::Workstations::V1beta::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/v1beta/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/v1beta/version"
|
24
|
+
|
25
|
+
require "google/cloud/workstations/v1beta/workstations/credentials"
|
26
|
+
require "google/cloud/workstations/v1beta/workstations/paths"
|
27
|
+
require "google/cloud/workstations/v1beta/workstations/operations"
|
28
|
+
require "google/cloud/workstations/v1beta/workstations/client"
|
29
|
+
require "google/cloud/workstations/v1beta/workstations/rest"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module Workstations
|
34
|
+
module V1beta
|
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/v1beta/workstations"
|
41
|
+
# client = ::Google::Cloud::Workstations::V1beta::Workstations::Client.new
|
42
|
+
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/workstations/v1beta/workstations/rest"
|
46
|
+
# client = ::Google::Cloud::Workstations::V1beta::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/v1beta/workstations/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/workstations/v1beta/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 = "\n3google/cloud/workstations/v1beta/workstations.proto\x12 google.cloud.workstations.v1beta\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\"\x93\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\x45.google.cloud.workstations.v1beta.WorkstationCluster.AnnotationsEntryB\x03\xe0\x41\x01\x12U\n\x06labels\x18\x0f \x03(\x0b\x32@.google.cloud.workstations.v1beta.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\x12n\n\x16private_cluster_config\x18\x0c \x01(\x0b\x32I.google.cloud.workstations.v1beta.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\"\xc2\x1e\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\x12^\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32\x44.google.cloud.workstations.v1beta.WorkstationConfig.AnnotationsEntryB\x03\xe0\x41\x01\x12T\n\x06labels\x18\x12 \x03(\x0b\x32?.google.cloud.workstations.v1beta.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\x12K\n\x04host\x18\x0c \x01(\x0b\x32\x38.google.cloud.workstations.v1beta.WorkstationConfig.HostB\x03\xe0\x41\x01\x12l\n\x16persistent_directories\x18\r \x03(\x0b\x32G.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryB\x03\xe0\x41\x01\x12j\n\x15\x65phemeral_directories\x18\x16 \x03(\x0b\x32\x46.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryB\x03\xe0\x41\x01\x12U\n\tcontainer\x18\x0e \x01(\x0b\x32=.google.cloud.workstations.v1beta.WorkstationConfig.ContainerB\x03\xe0\x41\x01\x12\x66\n\x0e\x65ncryption_key\x18\x11 \x01(\x0b\x32I.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyB\x03\xe0\x41\x05\x12\x61\n\x10readiness_checks\x18\x13 \x03(\x0b\x32\x42.google.cloud.workstations.v1beta.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\x12\x1f\n\x12\x65nable_audit_agent\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xa4\x08\n\x04Host\x12\\\n\x0cgce_instance\x18\x01 \x01(\x0b\x32\x44.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceH\x00\x1a\xb3\x07\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\x85\x01\n\x18shielded_instance_config\x18\x08 \x01(\x0b\x32^.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigB\x03\xe0\x41\x01\x12\x8d\x01\n\x1c\x63onfidential_instance_config\x18\n \x01(\x0b\x32\x62.google.cloud.workstations.v1beta.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\x12k\n\x0c\x61\x63\x63\x65lerators\x18\x0b \x03(\x0b\x32P.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorB\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\x1a\x34\n\x0b\x41\x63\x63\x65lerator\x12\x11\n\x04type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x63ount\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x42\x08\n\x06\x63onfig\x1a\x8d\x04\n\x13PersistentDirectory\x12s\n\x06gce_pd\x18\x02 \x01(\x0b\x32\x61.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskH\x00\x12\x17\n\nmount_path\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a\xd5\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\x8c\x01\n\x0ereclaim_policy\x18\x04 \x01(\x0e\x32o.google.cloud.workstations.v1beta.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\xa9\x02\n\x12\x45phemeralDirectory\x12j\n\x06gce_pd\x18\x03 \x01(\x0b\x32X.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskH\x00\x12\x17\n\nmount_path\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a|\n\x11GcePersistentDisk\x12\x16\n\tdisk_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fsource_snapshot\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0csource_image\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tread_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x42\x10\n\x0e\x64irectory_type\x1a\x82\x02\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\x12X\n\x03\x65nv\x18\x04 \x03(\x0b\x32\x46.google.cloud.workstations.v1beta.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\"\xfe\x08\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\x12X\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32>.google.cloud.workstations.v1beta.Workstation.AnnotationsEntryB\x03\xe0\x41\x01\x12N\n\x06labels\x18\r \x03(\x0b\x32\x39.google.cloud.workstations.v1beta.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\x12G\n\x05state\x18\n \x01(\x0e\x32\x33.google.cloud.workstations.v1beta.Workstation.StateB\x03\xe0\x41\x03\x12\x11\n\x04host\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12H\n\x03\x65nv\x18\x0c \x03(\x0b\x32\x36.google.cloud.workstations.v1beta.Workstation.EnvEntryB\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\x1a*\n\x08\x45nvEntry\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\"\xa3\x01\n\x1fListWorkstationClustersResponse\x12R\n\x14workstation_clusters\x18\x01 \x03(\x0b\x32\x34.google.cloud.workstations.v1beta.WorkstationCluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x82\x02\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\x12V\n\x13workstation_cluster\x18\x03 \x01(\x0b\x32\x34.google.cloud.workstations.v1beta.WorkstationClusterB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xe7\x01\n\x1fUpdateWorkstationClusterRequest\x12V\n\x13workstation_cluster\x18\x01 \x01(\x0b\x32\x34.google.cloud.workstations.v1beta.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\"\xa0\x01\n\x1eListWorkstationConfigsResponse\x12P\n\x13workstation_configs\x18\x01 \x03(\x0b\x32\x33.google.cloud.workstations.v1beta.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\"\xa6\x01\n$ListUsableWorkstationConfigsResponse\x12P\n\x13workstation_configs\x18\x01 \x03(\x0b\x32\x33.google.cloud.workstations.v1beta.WorkstationConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xfe\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\x12T\n\x12workstation_config\x18\x03 \x01(\x0b\x32\x33.google.cloud.workstations.v1beta.WorkstationConfigB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xe4\x01\n\x1eUpdateWorkstationConfigRequest\x12T\n\x12workstation_config\x18\x01 \x01(\x0b\x32\x33.google.cloud.workstations.v1beta.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\"\x97\x01\n\x18ListWorkstationsResponse\x12\x43\n\x0cworkstations\x18\x01 \x03(\x0b\x32-.google.cloud.workstations.v1beta.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\"\x93\x01\n\x1eListUsableWorkstationsResponse\x12\x43\n\x0cworkstations\x18\x01 \x03(\x0b\x32-.google.cloud.workstations.v1beta.Workstation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xe3\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\x12G\n\x0bworkstation\x18\x03 \x01(\x0b\x32-.google.cloud.workstations.v1beta.WorkstationB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xd1\x01\n\x18UpdateWorkstationRequest\x12G\n\x0bworkstation\x18\x01 \x01(\x0b\x32-.google.cloud.workstations.v1beta.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\xdf+\n\x0cWorkstations\x12\xd9\x01\n\x15GetWorkstationCluster\x12>.google.cloud.workstations.v1beta.GetWorkstationClusterRequest\x1a\x34.google.cloud.workstations.v1beta.WorkstationCluster\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=\x12;/v1beta/{name=projects/*/locations/*/workstationClusters/*}\x12\xec\x01\n\x17ListWorkstationClusters\x12@.google.cloud.workstations.v1beta.ListWorkstationClustersRequest\x1a\x41.google.cloud.workstations.v1beta.ListWorkstationClustersResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1beta/{parent=projects/*/locations/*}/workstationClusters\x12\xb5\x02\n\x18\x43reateWorkstationCluster\x12\x41.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest\x1a\x1d.google.longrunning.Operation\"\xb6\x01\xca\x41\'\n\x12WorkstationCluster\x12\x11OperationMetadata\xda\x41\x31parent,workstation_cluster,workstation_cluster_id\x82\xd3\xe4\x93\x02R\";/v1beta/{parent=projects/*/locations/*}/workstationClusters:\x13workstation_cluster\x12\xb7\x02\n\x18UpdateWorkstationCluster\x12\x41.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest\x1a\x1d.google.longrunning.Operation\"\xb8\x01\xca\x41\'\n\x12WorkstationCluster\x12\x11OperationMetadata\xda\x41\x1fworkstation_cluster,update_mask\x82\xd3\xe4\x93\x02\x66\x32O/v1beta/{workstation_cluster.name=projects/*/locations/*/workstationClusters/*}:\x13workstation_cluster\x12\xf2\x01\n\x18\x44\x65leteWorkstationCluster\x12\x41.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest\x1a\x1d.google.longrunning.Operation\"t\xca\x41\'\n\x12WorkstationCluster\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02=*;/v1beta/{name=projects/*/locations/*/workstationClusters/*}\x12\xeb\x01\n\x14GetWorkstationConfig\x12=.google.cloud.workstations.v1beta.GetWorkstationConfigRequest\x1a\x33.google.cloud.workstations.v1beta.WorkstationConfig\"_\xda\x41\x04name\x82\xd3\xe4\x93\x02R\x12P/v1beta/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}\x12\xfe\x01\n\x16ListWorkstationConfigs\x12?.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest\x1a@.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse\"a\xda\x41\x06parent\x82\xd3\xe4\x93\x02R\x12P/v1beta/{parent=projects/*/locations/*/workstationClusters/*}/workstationConfigs\x12\x9b\x02\n\x1cListUsableWorkstationConfigs\x12\x45.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest\x1a\x46.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse\"l\xda\x41\x06parent\x82\xd3\xe4\x93\x02]\x12[/v1beta/{parent=projects/*/locations/*/workstationClusters/*}/workstationConfigs:listUsable\x12\xc4\x02\n\x17\x43reateWorkstationConfig\x12@.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest\x1a\x1d.google.longrunning.Operation\"\xc7\x01\xca\x41&\n\x11WorkstationConfig\x12\x11OperationMetadata\xda\x41/parent,workstation_config,workstation_config_id\x82\xd3\xe4\x93\x02\x66\"P/v1beta/{parent=projects/*/locations/*/workstationClusters/*}/workstationConfigs:\x12workstation_config\x12\xc6\x02\n\x17UpdateWorkstationConfig\x12@.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest\x1a\x1d.google.longrunning.Operation\"\xc9\x01\xca\x41&\n\x11WorkstationConfig\x12\x11OperationMetadata\xda\x41\x1eworkstation_config,update_mask\x82\xd3\xe4\x93\x02y2c/v1beta/{workstation_config.name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}:\x12workstation_config\x12\x85\x02\n\x17\x44\x65leteWorkstationConfig\x12@.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest\x1a\x1d.google.longrunning.Operation\"\x88\x01\xca\x41&\n\x11WorkstationConfig\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02R*P/v1beta/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}\x12\xe8\x01\n\x0eGetWorkstation\x12\x37.google.cloud.workstations.v1beta.GetWorkstationRequest\x1a-.google.cloud.workstations.v1beta.Workstation\"n\xda\x41\x04name\x82\xd3\xe4\x93\x02\x61\x12_/v1beta/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}\x12\xfb\x01\n\x10ListWorkstations\x12\x39.google.cloud.workstations.v1beta.ListWorkstationsRequest\x1a:.google.cloud.workstations.v1beta.ListWorkstationsResponse\"p\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x61\x12_/v1beta/{parent=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}/workstations\x12\x98\x02\n\x16ListUsableWorkstations\x12?.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest\x1a@.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse\"{\xda\x41\x06parent\x82\xd3\xe4\x93\x02l\x12j/v1beta/{parent=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}/workstations:listUsable\x12\xac\x02\n\x11\x43reateWorkstation\x12:.google.cloud.workstations.v1beta.CreateWorkstationRequest\x1a\x1d.google.longrunning.Operation\"\xbb\x01\xca\x41 \n\x0bWorkstation\x12\x11OperationMetadata\xda\x41!parent,workstation,workstation_id\x82\xd3\xe4\x93\x02n\"_/v1beta/{parent=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}/workstations:\x0bworkstation\x12\xae\x02\n\x11UpdateWorkstation\x12:.google.cloud.workstations.v1beta.UpdateWorkstationRequest\x1a\x1d.google.longrunning.Operation\"\xbd\x01\xca\x41 \n\x0bWorkstation\x12\x11OperationMetadata\xda\x41\x17workstation,update_mask\x82\xd3\xe4\x93\x02z2k/v1beta/{workstation.name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:\x0bworkstation\x12\x82\x02\n\x11\x44\x65leteWorkstation\x12:.google.cloud.workstations.v1beta.DeleteWorkstationRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\xca\x41 \n\x0bWorkstation\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x61*_/v1beta/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}\x12\x89\x02\n\x10StartWorkstation\x12\x39.google.cloud.workstations.v1beta.StartWorkstationRequest\x1a\x1d.google.longrunning.Operation\"\x9a\x01\xca\x41 \n\x0bWorkstation\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02j\"e/v1beta/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:start:\x01*\x12\x86\x02\n\x0fStopWorkstation\x12\x38.google.cloud.workstations.v1beta.StopWorkstationRequest\x1a\x1d.google.longrunning.Operation\"\x99\x01\xca\x41 \n\x0bWorkstation\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02i\"d/v1beta/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:stop:\x01*\x12\xa8\x02\n\x13GenerateAccessToken\x12<.google.cloud.workstations.v1beta.GenerateAccessTokenRequest\x1a=.google.cloud.workstations.v1beta.GenerateAccessTokenResponse\"\x93\x01\xda\x41\x0bworkstation\x82\xd3\xe4\x93\x02\x7f\"z/v1beta/{workstation=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:generateAccessToken:\x01*\x1aO\xca\x41\x1bworkstations.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x85\x01\n$com.google.cloud.workstations.v1betaB\x11WorkstationsProtoP\x01ZHcloud.google.com/go/workstations/apiv1beta/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 V1beta
|
52
|
+
WorkstationCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationCluster").msgclass
|
53
|
+
WorkstationCluster::PrivateClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig").msgclass
|
54
|
+
WorkstationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig").msgclass
|
55
|
+
WorkstationConfig::Host = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig.Host").msgclass
|
56
|
+
WorkstationConfig::Host::GceInstance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance").msgclass
|
57
|
+
WorkstationConfig::Host::GceInstance::GceShieldedInstanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig").msgclass
|
58
|
+
WorkstationConfig::Host::GceInstance::GceConfidentialInstanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig").msgclass
|
59
|
+
WorkstationConfig::Host::GceInstance::Accelerator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator").msgclass
|
60
|
+
WorkstationConfig::PersistentDirectory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory").msgclass
|
61
|
+
WorkstationConfig::PersistentDirectory::GceRegionalPersistentDisk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk").msgclass
|
62
|
+
WorkstationConfig::PersistentDirectory::GceRegionalPersistentDisk::ReclaimPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy").enummodule
|
63
|
+
WorkstationConfig::EphemeralDirectory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory").msgclass
|
64
|
+
WorkstationConfig::EphemeralDirectory::GcePersistentDisk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk").msgclass
|
65
|
+
WorkstationConfig::Container = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig.Container").msgclass
|
66
|
+
WorkstationConfig::CustomerEncryptionKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey").msgclass
|
67
|
+
WorkstationConfig::ReadinessCheck = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck").msgclass
|
68
|
+
Workstation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.Workstation").msgclass
|
69
|
+
Workstation::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.Workstation.State").enummodule
|
70
|
+
GetWorkstationClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.GetWorkstationClusterRequest").msgclass
|
71
|
+
ListWorkstationClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.ListWorkstationClustersRequest").msgclass
|
72
|
+
ListWorkstationClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.ListWorkstationClustersResponse").msgclass
|
73
|
+
CreateWorkstationClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.CreateWorkstationClusterRequest").msgclass
|
74
|
+
UpdateWorkstationClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest").msgclass
|
75
|
+
DeleteWorkstationClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest").msgclass
|
76
|
+
GetWorkstationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.GetWorkstationConfigRequest").msgclass
|
77
|
+
ListWorkstationConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.ListWorkstationConfigsRequest").msgclass
|
78
|
+
ListWorkstationConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.ListWorkstationConfigsResponse").msgclass
|
79
|
+
ListUsableWorkstationConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest").msgclass
|
80
|
+
ListUsableWorkstationConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse").msgclass
|
81
|
+
CreateWorkstationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.CreateWorkstationConfigRequest").msgclass
|
82
|
+
UpdateWorkstationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest").msgclass
|
83
|
+
DeleteWorkstationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest").msgclass
|
84
|
+
GetWorkstationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.GetWorkstationRequest").msgclass
|
85
|
+
ListWorkstationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.ListWorkstationsRequest").msgclass
|
86
|
+
ListWorkstationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.ListWorkstationsResponse").msgclass
|
87
|
+
ListUsableWorkstationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.ListUsableWorkstationsRequest").msgclass
|
88
|
+
ListUsableWorkstationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.ListUsableWorkstationsResponse").msgclass
|
89
|
+
CreateWorkstationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.CreateWorkstationRequest").msgclass
|
90
|
+
UpdateWorkstationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.UpdateWorkstationRequest").msgclass
|
91
|
+
DeleteWorkstationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.DeleteWorkstationRequest").msgclass
|
92
|
+
StartWorkstationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.StartWorkstationRequest").msgclass
|
93
|
+
StopWorkstationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.StopWorkstationRequest").msgclass
|
94
|
+
GenerateAccessTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.GenerateAccessTokenRequest").msgclass
|
95
|
+
GenerateAccessTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.GenerateAccessTokenResponse").msgclass
|
96
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workstations.v1beta.OperationMetadata").msgclass
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/workstations/v1beta/workstations.proto for package 'google.cloud.workstations.v1beta'
|
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/v1beta/workstations_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Workstations
|
25
|
+
module V1beta
|
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.v1beta.Workstations'
|
35
|
+
|
36
|
+
# Returns the requested workstation cluster.
|
37
|
+
rpc :GetWorkstationCluster, ::Google::Cloud::Workstations::V1beta::GetWorkstationClusterRequest, ::Google::Cloud::Workstations::V1beta::WorkstationCluster
|
38
|
+
# Returns all workstation clusters in the specified location.
|
39
|
+
rpc :ListWorkstationClusters, ::Google::Cloud::Workstations::V1beta::ListWorkstationClustersRequest, ::Google::Cloud::Workstations::V1beta::ListWorkstationClustersResponse
|
40
|
+
# Creates a new workstation cluster.
|
41
|
+
rpc :CreateWorkstationCluster, ::Google::Cloud::Workstations::V1beta::CreateWorkstationClusterRequest, ::Google::Longrunning::Operation
|
42
|
+
# Updates an existing workstation cluster.
|
43
|
+
rpc :UpdateWorkstationCluster, ::Google::Cloud::Workstations::V1beta::UpdateWorkstationClusterRequest, ::Google::Longrunning::Operation
|
44
|
+
# Deletes the specified workstation cluster.
|
45
|
+
rpc :DeleteWorkstationCluster, ::Google::Cloud::Workstations::V1beta::DeleteWorkstationClusterRequest, ::Google::Longrunning::Operation
|
46
|
+
# Returns the requested workstation configuration.
|
47
|
+
rpc :GetWorkstationConfig, ::Google::Cloud::Workstations::V1beta::GetWorkstationConfigRequest, ::Google::Cloud::Workstations::V1beta::WorkstationConfig
|
48
|
+
# Returns all workstation configurations in the specified cluster.
|
49
|
+
rpc :ListWorkstationConfigs, ::Google::Cloud::Workstations::V1beta::ListWorkstationConfigsRequest, ::Google::Cloud::Workstations::V1beta::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::V1beta::ListUsableWorkstationConfigsRequest, ::Google::Cloud::Workstations::V1beta::ListUsableWorkstationConfigsResponse
|
53
|
+
# Creates a new workstation configuration.
|
54
|
+
rpc :CreateWorkstationConfig, ::Google::Cloud::Workstations::V1beta::CreateWorkstationConfigRequest, ::Google::Longrunning::Operation
|
55
|
+
# Updates an existing workstation configuration.
|
56
|
+
rpc :UpdateWorkstationConfig, ::Google::Cloud::Workstations::V1beta::UpdateWorkstationConfigRequest, ::Google::Longrunning::Operation
|
57
|
+
# Deletes the specified workstation configuration.
|
58
|
+
rpc :DeleteWorkstationConfig, ::Google::Cloud::Workstations::V1beta::DeleteWorkstationConfigRequest, ::Google::Longrunning::Operation
|
59
|
+
# Returns the requested workstation.
|
60
|
+
rpc :GetWorkstation, ::Google::Cloud::Workstations::V1beta::GetWorkstationRequest, ::Google::Cloud::Workstations::V1beta::Workstation
|
61
|
+
# Returns all Workstations using the specified workstation configuration.
|
62
|
+
rpc :ListWorkstations, ::Google::Cloud::Workstations::V1beta::ListWorkstationsRequest, ::Google::Cloud::Workstations::V1beta::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::V1beta::ListUsableWorkstationsRequest, ::Google::Cloud::Workstations::V1beta::ListUsableWorkstationsResponse
|
66
|
+
# Creates a new workstation.
|
67
|
+
rpc :CreateWorkstation, ::Google::Cloud::Workstations::V1beta::CreateWorkstationRequest, ::Google::Longrunning::Operation
|
68
|
+
# Updates an existing workstation.
|
69
|
+
rpc :UpdateWorkstation, ::Google::Cloud::Workstations::V1beta::UpdateWorkstationRequest, ::Google::Longrunning::Operation
|
70
|
+
# Deletes the specified workstation.
|
71
|
+
rpc :DeleteWorkstation, ::Google::Cloud::Workstations::V1beta::DeleteWorkstationRequest, ::Google::Longrunning::Operation
|
72
|
+
# Starts running a workstation so that users can connect to it.
|
73
|
+
rpc :StartWorkstation, ::Google::Cloud::Workstations::V1beta::StartWorkstationRequest, ::Google::Longrunning::Operation
|
74
|
+
# Stops running a workstation, reducing costs.
|
75
|
+
rpc :StopWorkstation, ::Google::Cloud::Workstations::V1beta::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::V1beta::GenerateAccessTokenRequest, ::Google::Cloud::Workstations::V1beta::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/v1beta/workstations"
|
20
|
+
require "google/cloud/workstations/v1beta/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/v1beta"
|
31
|
+
# client = ::Google::Cloud::Workstations::V1beta::Workstations::Client.new
|
32
|
+
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/cloud/workstations/v1beta"
|
36
|
+
# client = ::Google::Cloud::Workstations::V1beta::Workstations::Rest::Client.new
|
37
|
+
#
|
38
|
+
module V1beta
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
helper_path = ::File.join __dir__, "v1beta", "_helpers.rb"
|
45
|
+
require "google/cloud/workstations/v1beta/_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/v1beta"
|