google-cloud-bare_metal_solution-v2 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +3 -3
  4. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/client.rb +59 -69
  5. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/operations.rb +14 -16
  6. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/client.rb +1795 -0
  7. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/operations.rb +793 -0
  8. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/service_stub.rb +1237 -0
  9. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest.rb +61 -0
  10. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution.rb +7 -1
  11. data/lib/google/cloud/bare_metal_solution/v2/bindings_override.rb +102 -0
  12. data/lib/google/cloud/bare_metal_solution/v2/rest.rb +38 -0
  13. data/lib/google/cloud/bare_metal_solution/v2/version.rb +1 -1
  14. data/lib/google/cloud/bare_metal_solution/v2.rb +7 -2
  15. data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_pb.rb +25 -12
  16. data/lib/google/cloud/baremetalsolution/v2/instance_pb.rb +28 -74
  17. data/lib/google/cloud/baremetalsolution/v2/lun_pb.rb +24 -42
  18. data/lib/google/cloud/baremetalsolution/v2/network_pb.rb +25 -89
  19. data/lib/google/cloud/baremetalsolution/v2/nfs_share_pb.rb +25 -45
  20. data/lib/google/cloud/baremetalsolution/v2/volume_pb.rb +25 -62
  21. data/proto_docs/google/api/client.rb +381 -0
  22. data/proto_docs/google/api/launch_stage.rb +71 -0
  23. data/proto_docs/google/protobuf/any.rb +7 -4
  24. data/proto_docs/google/protobuf/empty.rb +0 -2
  25. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  26. data/proto_docs/google/rpc/status.rb +4 -2
  27. metadata +21 -12
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/baremetalsolution/v2/network.proto
3
4
 
@@ -7,97 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/protobuf/field_mask_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/baremetalsolution/v2/network.proto", :syntax => :proto3) do
12
- add_message "google.cloud.baremetalsolution.v2.Network" do
13
- optional :name, :string, 5
14
- optional :id, :string, 10
15
- optional :type, :enum, 2, "google.cloud.baremetalsolution.v2.Network.Type"
16
- optional :ip_address, :string, 3
17
- repeated :mac_address, :string, 4
18
- optional :state, :enum, 6, "google.cloud.baremetalsolution.v2.Network.State"
19
- optional :vlan_id, :string, 7
20
- optional :cidr, :string, 8
21
- optional :vrf, :message, 9, "google.cloud.baremetalsolution.v2.VRF"
22
- map :labels, :string, :string, 11
23
- optional :services_cidr, :string, 12
24
- repeated :reservations, :message, 13, "google.cloud.baremetalsolution.v2.NetworkAddressReservation"
25
- end
26
- add_enum "google.cloud.baremetalsolution.v2.Network.Type" do
27
- value :TYPE_UNSPECIFIED, 0
28
- value :CLIENT, 1
29
- value :PRIVATE, 2
30
- end
31
- add_enum "google.cloud.baremetalsolution.v2.Network.State" do
32
- value :STATE_UNSPECIFIED, 0
33
- value :PROVISIONING, 1
34
- value :PROVISIONED, 2
35
- end
36
- add_message "google.cloud.baremetalsolution.v2.NetworkAddressReservation" do
37
- optional :start_address, :string, 1
38
- optional :end_address, :string, 2
39
- optional :note, :string, 3
40
- end
41
- add_message "google.cloud.baremetalsolution.v2.VRF" do
42
- optional :name, :string, 1
43
- optional :state, :enum, 5, "google.cloud.baremetalsolution.v2.VRF.State"
44
- optional :qos_policy, :message, 6, "google.cloud.baremetalsolution.v2.VRF.QosPolicy"
45
- repeated :vlan_attachments, :message, 7, "google.cloud.baremetalsolution.v2.VRF.VlanAttachment"
46
- end
47
- add_message "google.cloud.baremetalsolution.v2.VRF.QosPolicy" do
48
- optional :bandwidth_gbps, :double, 1
49
- end
50
- add_message "google.cloud.baremetalsolution.v2.VRF.VlanAttachment" do
51
- optional :peer_vlan_id, :int64, 1
52
- optional :peer_ip, :string, 2
53
- optional :router_ip, :string, 3
54
- end
55
- add_enum "google.cloud.baremetalsolution.v2.VRF.State" do
56
- value :STATE_UNSPECIFIED, 0
57
- value :PROVISIONING, 1
58
- value :PROVISIONED, 2
59
- end
60
- add_message "google.cloud.baremetalsolution.v2.LogicalInterface" do
61
- repeated :logical_network_interfaces, :message, 1, "google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface"
62
- optional :name, :string, 2
63
- optional :interface_index, :int32, 3
64
- end
65
- add_message "google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface" do
66
- optional :network, :string, 1
67
- optional :ip_address, :string, 2
68
- optional :default_gateway, :bool, 3
69
- optional :network_type, :enum, 4, "google.cloud.baremetalsolution.v2.Network.Type"
70
- optional :id, :string, 5
71
- end
72
- add_message "google.cloud.baremetalsolution.v2.GetNetworkRequest" do
73
- optional :name, :string, 1
74
- end
75
- add_message "google.cloud.baremetalsolution.v2.ListNetworksRequest" do
76
- optional :parent, :string, 1
77
- optional :page_size, :int32, 2
78
- optional :page_token, :string, 3
79
- optional :filter, :string, 4
80
- end
81
- add_message "google.cloud.baremetalsolution.v2.ListNetworksResponse" do
82
- repeated :networks, :message, 1, "google.cloud.baremetalsolution.v2.Network"
83
- optional :next_page_token, :string, 2
84
- repeated :unreachable, :string, 3
85
- end
86
- add_message "google.cloud.baremetalsolution.v2.UpdateNetworkRequest" do
87
- optional :network, :message, 1, "google.cloud.baremetalsolution.v2.Network"
88
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
89
- end
90
- add_message "google.cloud.baremetalsolution.v2.NetworkUsage" do
91
- optional :network, :message, 1, "google.cloud.baremetalsolution.v2.Network"
92
- repeated :used_ips, :string, 2
93
- end
94
- add_message "google.cloud.baremetalsolution.v2.ListNetworkUsageRequest" do
95
- optional :location, :string, 1
96
- end
97
- add_message "google.cloud.baremetalsolution.v2.ListNetworkUsageResponse" do
98
- repeated :networks, :message, 1, "google.cloud.baremetalsolution.v2.NetworkUsage"
11
+
12
+ descriptor_data = "\n/google/cloud/baremetalsolution/v2/network.proto\x12!google.cloud.baremetalsolution.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xec\x05\n\x07Network\x12\x11\n\x04name\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\n\n\x02id\x18\n \x01(\t\x12=\n\x04type\x18\x02 \x01(\x0e\x32/.google.cloud.baremetalsolution.v2.Network.Type\x12\x12\n\nip_address\x18\x03 \x01(\t\x12\x13\n\x0bmac_address\x18\x04 \x03(\t\x12?\n\x05state\x18\x06 \x01(\x0e\x32\x30.google.cloud.baremetalsolution.v2.Network.State\x12\x0f\n\x07vlan_id\x18\x07 \x01(\t\x12\x0c\n\x04\x63idr\x18\x08 \x01(\t\x12\x33\n\x03vrf\x18\t \x01(\x0b\x32&.google.cloud.baremetalsolution.v2.VRF\x12\x46\n\x06labels\x18\x0b \x03(\x0b\x32\x36.google.cloud.baremetalsolution.v2.Network.LabelsEntry\x12\x15\n\rservices_cidr\x18\x0c \x01(\t\x12R\n\x0creservations\x18\r \x03(\x0b\x32<.google.cloud.baremetalsolution.v2.NetworkAddressReservation\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43LIENT\x10\x01\x12\x0b\n\x07PRIVATE\x10\x02\"A\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\x0f\n\x0bPROVISIONED\x10\x02:i\xea\x41\x66\n(baremetalsolution.googleapis.com/Network\x12:projects/{project}/locations/{location}/networks/{network}\"U\n\x19NetworkAddressReservation\x12\x15\n\rstart_address\x18\x01 \x01(\t\x12\x13\n\x0b\x65nd_address\x18\x02 \x01(\t\x12\x0c\n\x04note\x18\x03 \x01(\t\"\x9b\x03\n\x03VRF\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x05state\x18\x05 \x01(\x0e\x32,.google.cloud.baremetalsolution.v2.VRF.State\x12\x44\n\nqos_policy\x18\x06 \x01(\x0b\x32\x30.google.cloud.baremetalsolution.v2.VRF.QosPolicy\x12O\n\x10vlan_attachments\x18\x07 \x03(\x0b\x32\x35.google.cloud.baremetalsolution.v2.VRF.VlanAttachment\x1a#\n\tQosPolicy\x12\x16\n\x0e\x62\x61ndwidth_gbps\x18\x01 \x01(\x01\x1aJ\n\x0eVlanAttachment\x12\x14\n\x0cpeer_vlan_id\x18\x01 \x01(\x03\x12\x0f\n\x07peer_ip\x18\x02 \x01(\t\x12\x11\n\trouter_ip\x18\x03 \x01(\t\"A\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\x0f\n\x0bPROVISIONED\x10\x02\"\xd7\x02\n\x10LogicalInterface\x12o\n\x1alogical_network_interfaces\x18\x01 \x03(\x0b\x32K.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x17\n\x0finterface_index\x18\x03 \x01(\x05\x1a\xaa\x01\n\x17LogicalNetworkInterface\x12\x0f\n\x07network\x18\x01 \x01(\t\x12\x12\n\nip_address\x18\x02 \x01(\t\x12\x17\n\x0f\x64\x65\x66\x61ult_gateway\x18\x03 \x01(\x08\x12\x45\n\x0cnetwork_type\x18\x04 \x01(\x0e\x32/.google.cloud.baremetalsolution.v2.Network.Type\x12\n\n\x02id\x18\x05 \x01(\t\"S\n\x11GetNetworkRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(baremetalsolution.googleapis.com/Network\"\x87\x01\n\x13ListNetworksRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"\x82\x01\n\x14ListNetworksResponse\x12<\n\x08networks\x18\x01 \x03(\x0b\x32*.google.cloud.baremetalsolution.v2.Network\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x89\x01\n\x14UpdateNetworkRequest\x12@\n\x07network\x18\x01 \x01(\x0b\x32*.google.cloud.baremetalsolution.v2.NetworkB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"]\n\x0cNetworkUsage\x12;\n\x07network\x18\x01 \x01(\x0b\x32*.google.cloud.baremetalsolution.v2.Network\x12\x10\n\x08used_ips\x18\x02 \x03(\t\"V\n\x17ListNetworkUsageRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"]\n\x18ListNetworkUsageResponse\x12\x41\n\x08networks\x18\x01 \x03(\x0b\x32/.google.cloud.baremetalsolution.v2.NetworkUsageB\xfb\x01\n%com.google.cloud.baremetalsolution.v2B\x0cNetworkProtoP\x01ZScloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb;baremetalsolutionpb\xaa\x02!Google.Cloud.BareMetalSolution.V2\xca\x02!Google\\Cloud\\BareMetalSolution\\V2\xea\x02$Google::Cloud::BareMetalSolution::V2b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
99
33
  end
100
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
101
37
  end
102
38
 
103
39
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/baremetalsolution/v2/nfs_share.proto
3
4
 
@@ -7,53 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/protobuf/field_mask_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/baremetalsolution/v2/nfs_share.proto", :syntax => :proto3) do
12
- add_message "google.cloud.baremetalsolution.v2.NfsShare" do
13
- optional :name, :string, 1
14
- optional :nfs_share_id, :string, 2
15
- optional :state, :enum, 3, "google.cloud.baremetalsolution.v2.NfsShare.State"
16
- optional :volume, :string, 4
17
- repeated :allowed_clients, :message, 5, "google.cloud.baremetalsolution.v2.NfsShare.AllowedClient"
18
- map :labels, :string, :string, 6
19
- end
20
- add_message "google.cloud.baremetalsolution.v2.NfsShare.AllowedClient" do
21
- optional :network, :string, 1
22
- optional :share_ip, :string, 2
23
- optional :allowed_clients_cidr, :string, 3
24
- optional :mount_permissions, :enum, 4, "google.cloud.baremetalsolution.v2.NfsShare.MountPermissions"
25
- optional :allow_dev, :bool, 5
26
- optional :allow_suid, :bool, 6
27
- optional :no_root_squash, :bool, 7
28
- end
29
- add_enum "google.cloud.baremetalsolution.v2.NfsShare.State" do
30
- value :STATE_UNSPECIFIED, 0
31
- value :PROVISIONED, 1
32
- end
33
- add_enum "google.cloud.baremetalsolution.v2.NfsShare.MountPermissions" do
34
- value :MOUNT_PERMISSIONS_UNSPECIFIED, 0
35
- value :READ, 1
36
- value :READ_WRITE, 2
37
- end
38
- add_message "google.cloud.baremetalsolution.v2.GetNfsShareRequest" do
39
- optional :name, :string, 1
40
- end
41
- add_message "google.cloud.baremetalsolution.v2.ListNfsSharesRequest" do
42
- optional :parent, :string, 1
43
- optional :page_size, :int32, 2
44
- optional :page_token, :string, 3
45
- optional :filter, :string, 4
46
- end
47
- add_message "google.cloud.baremetalsolution.v2.ListNfsSharesResponse" do
48
- repeated :nfs_shares, :message, 1, "google.cloud.baremetalsolution.v2.NfsShare"
49
- optional :next_page_token, :string, 2
50
- repeated :unreachable, :string, 3
51
- end
52
- add_message "google.cloud.baremetalsolution.v2.UpdateNfsShareRequest" do
53
- optional :nfs_share, :message, 1, "google.cloud.baremetalsolution.v2.NfsShare"
54
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
11
+
12
+ descriptor_data = "\n1google/cloud/baremetalsolution/v2/nfs_share.proto\x12!google.cloud.baremetalsolution.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\x8f\x07\n\x08NfsShare\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cnfs_share_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12@\n\x05state\x18\x03 \x01(\x0e\x32\x31.google.cloud.baremetalsolution.v2.NfsShare.State\x12<\n\x06volume\x18\x04 \x01(\tB,\xfa\x41)\n\'baremetalsolution.googleapis.com/Volume\x12R\n\x0f\x61llowed_clients\x18\x05 \x03(\x0b\x32\x39.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient\x12G\n\x06labels\x18\x06 \x03(\x0b\x32\x37.google.cloud.baremetalsolution.v2.NfsShare.LabelsEntry\x1a\x97\x02\n\rAllowedClient\x12>\n\x07network\x18\x01 \x01(\tB-\xfa\x41*\n(baremetalsolution.googleapis.com/Network\x12\x10\n\x08share_ip\x18\x02 \x01(\t\x12\x1c\n\x14\x61llowed_clients_cidr\x18\x03 \x01(\t\x12W\n\x11mount_permissions\x18\x04 \x01(\x0e\x32<.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions\x12\x11\n\tallow_dev\x18\x05 \x01(\x08\x12\x12\n\nallow_suid\x18\x06 \x01(\x08\x12\x16\n\x0eno_root_squash\x18\x07 \x01(\x08\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"/\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPROVISIONED\x10\x01\"O\n\x10MountPermissions\x12!\n\x1dMOUNT_PERMISSIONS_UNSPECIFIED\x10\x00\x12\x08\n\x04READ\x10\x01\x12\x0e\n\nREAD_WRITE\x10\x02:m\xea\x41j\n)baremetalsolution.googleapis.com/NFSShare\x12=projects/{project}/locations/{location}/nfsShares/{nfs_share}\"U\n\x12GetNfsShareRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)baremetalsolution.googleapis.com/NFSShare\"\x88\x01\n\x14ListNfsSharesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"\x86\x01\n\x15ListNfsSharesResponse\x12?\n\nnfs_shares\x18\x01 \x03(\x0b\x32+.google.cloud.baremetalsolution.v2.NfsShare\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x8d\x01\n\x15UpdateNfsShareRequest\x12\x43\n\tnfs_share\x18\x01 \x01(\x0b\x32+.google.cloud.baremetalsolution.v2.NfsShareB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\xfc\x01\n%com.google.cloud.baremetalsolution.v2B\rNfsShareProtoP\x01ZScloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb;baremetalsolutionpb\xaa\x02!Google.Cloud.BareMetalSolution.V2\xca\x02!Google\\Cloud\\BareMetalSolution\\V2\xea\x02$Google::Cloud::BareMetalSolution::V2b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
55
33
  end
56
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
57
37
  end
58
38
 
59
39
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/baremetalsolution/v2/volume.proto
3
4
 
@@ -7,70 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/protobuf/field_mask_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/baremetalsolution/v2/volume.proto", :syntax => :proto3) do
12
- add_message "google.cloud.baremetalsolution.v2.Volume" do
13
- optional :name, :string, 1
14
- optional :id, :string, 11
15
- optional :storage_type, :enum, 2, "google.cloud.baremetalsolution.v2.Volume.StorageType"
16
- optional :state, :enum, 3, "google.cloud.baremetalsolution.v2.Volume.State"
17
- optional :requested_size_gib, :int64, 4
18
- optional :current_size_gib, :int64, 5
19
- optional :emergency_size_gib, :int64, 14
20
- optional :auto_grown_size_gib, :int64, 6
21
- optional :remaining_space_gib, :int64, 7
22
- optional :snapshot_reservation_detail, :message, 8, "google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail"
23
- optional :snapshot_auto_delete_behavior, :enum, 9, "google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior"
24
- map :labels, :string, :string, 12
25
- optional :snapshot_enabled, :bool, 13
26
- optional :pod, :string, 15
27
- end
28
- add_message "google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail" do
29
- optional :reserved_space_gib, :int64, 1
30
- optional :reserved_space_used_percent, :int32, 2
31
- optional :reserved_space_remaining_gib, :int64, 3
32
- optional :reserved_space_percent, :int32, 4
33
- end
34
- add_enum "google.cloud.baremetalsolution.v2.Volume.StorageType" do
35
- value :STORAGE_TYPE_UNSPECIFIED, 0
36
- value :SSD, 1
37
- value :HDD, 2
38
- end
39
- add_enum "google.cloud.baremetalsolution.v2.Volume.State" do
40
- value :STATE_UNSPECIFIED, 0
41
- value :CREATING, 1
42
- value :READY, 2
43
- value :DELETING, 3
44
- end
45
- add_enum "google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior" do
46
- value :SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED, 0
47
- value :DISABLED, 1
48
- value :OLDEST_FIRST, 2
49
- value :NEWEST_FIRST, 3
50
- end
51
- add_message "google.cloud.baremetalsolution.v2.GetVolumeRequest" do
52
- optional :name, :string, 1
53
- end
54
- add_message "google.cloud.baremetalsolution.v2.ListVolumesRequest" do
55
- optional :parent, :string, 1
56
- optional :page_size, :int32, 2
57
- optional :page_token, :string, 3
58
- optional :filter, :string, 4
59
- end
60
- add_message "google.cloud.baremetalsolution.v2.ListVolumesResponse" do
61
- repeated :volumes, :message, 1, "google.cloud.baremetalsolution.v2.Volume"
62
- optional :next_page_token, :string, 2
63
- repeated :unreachable, :string, 3
64
- end
65
- add_message "google.cloud.baremetalsolution.v2.UpdateVolumeRequest" do
66
- optional :volume, :message, 1, "google.cloud.baremetalsolution.v2.Volume"
67
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
68
- end
69
- add_message "google.cloud.baremetalsolution.v2.ResizeVolumeRequest" do
70
- optional :volume, :string, 1
71
- optional :size_gib, :int64, 2
11
+
12
+ descriptor_data = "\n.google/cloud/baremetalsolution/v2/volume.proto\x12!google.cloud.baremetalsolution.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xcb\t\n\x06Volume\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\n\n\x02id\x18\x0b \x01(\t\x12K\n\x0cstorage_type\x18\x02 \x01(\x0e\x32\x35.google.cloud.baremetalsolution.v2.Volume.StorageType\x12>\n\x05state\x18\x03 \x01(\x0e\x32/.google.cloud.baremetalsolution.v2.Volume.State\x12\x1a\n\x12requested_size_gib\x18\x04 \x01(\x03\x12\x18\n\x10\x63urrent_size_gib\x18\x05 \x01(\x03\x12\x1a\n\x12\x65mergency_size_gib\x18\x0e \x01(\x03\x12\x1b\n\x13\x61uto_grown_size_gib\x18\x06 \x01(\x03\x12\x1b\n\x13remaining_space_gib\x18\x07 \x01(\x03\x12h\n\x1bsnapshot_reservation_detail\x18\x08 \x01(\x0b\x32\x43.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail\x12k\n\x1dsnapshot_auto_delete_behavior\x18\t \x01(\x0e\x32\x44.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior\x12\x45\n\x06labels\x18\x0c \x03(\x0b\x32\x35.google.cloud.baremetalsolution.v2.Volume.LabelsEntry\x12\x18\n\x10snapshot_enabled\x18\r \x01(\x08\x12\x10\n\x03pod\x18\x0f \x01(\tB\x03\xe0\x41\x05\x1a\xa2\x01\n\x19SnapshotReservationDetail\x12\x1a\n\x12reserved_space_gib\x18\x01 \x01(\x03\x12#\n\x1breserved_space_used_percent\x18\x02 \x01(\x05\x12$\n\x1creserved_space_remaining_gib\x18\x03 \x01(\x03\x12\x1e\n\x16reserved_space_percent\x18\x04 \x01(\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"=\n\x0bStorageType\x12\x1c\n\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03SSD\x10\x01\x12\x07\n\x03HDD\x10\x02\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\"}\n\x1aSnapshotAutoDeleteBehavior\x12-\n)SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x10\n\x0cOLDEST_FIRST\x10\x02\x12\x10\n\x0cNEWEST_FIRST\x10\x03:f\xea\x41\x63\n\'baremetalsolution.googleapis.com/Volume\x12\x38projects/{project}/locations/{location}/volumes/{volume}\"Q\n\x10GetVolumeRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'baremetalsolution.googleapis.com/Volume\"\x86\x01\n\x12ListVolumesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"\x7f\n\x13ListVolumesResponse\x12:\n\x07volumes\x18\x01 \x03(\x0b\x32).google.cloud.baremetalsolution.v2.Volume\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x86\x01\n\x13UpdateVolumeRequest\x12>\n\x06volume\x18\x01 \x01(\x0b\x32).google.cloud.baremetalsolution.v2.VolumeB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"h\n\x13ResizeVolumeRequest\x12?\n\x06volume\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'baremetalsolution.googleapis.com/Volume\x12\x10\n\x08size_gib\x18\x02 \x01(\x03\x42\xfa\x01\n%com.google.cloud.baremetalsolution.v2B\x0bVolumeProtoP\x01ZScloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb;baremetalsolutionpb\xaa\x02!Google.Cloud.BareMetalSolution.V2\xca\x02!Google\\Cloud\\BareMetalSolution\\V2\xea\x02$Google::Cloud::BareMetalSolution::V2b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
72
33
  end
73
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
74
37
  end
75
38
 
76
39
  module Google