google-api-client 0.20.0 → 0.20.1

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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +2 -1
  5. data/generated/google/apis/bigquery_v2.rb +1 -1
  6. data/generated/google/apis/bigquery_v2/classes.rb +2 -2
  7. data/generated/google/apis/classroom_v1.rb +1 -1
  8. data/generated/google/apis/classroom_v1/classes.rb +2 -1
  9. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  10. data/generated/google/apis/cloudbuild_v1/classes.rb +34 -0
  11. data/generated/google/apis/cloudbuild_v1/representations.rb +17 -0
  12. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  13. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +0 -1
  14. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  15. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +0 -1
  16. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  17. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +0 -1
  18. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  19. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +0 -1
  20. data/generated/google/apis/compute_alpha.rb +1 -1
  21. data/generated/google/apis/compute_alpha/classes.rb +536 -20
  22. data/generated/google/apis/compute_alpha/representations.rb +228 -2
  23. data/generated/google/apis/compute_alpha/service.rb +1860 -593
  24. data/generated/google/apis/compute_beta.rb +1 -1
  25. data/generated/google/apis/compute_beta/classes.rb +14 -0
  26. data/generated/google/apis/compute_beta/representations.rb +3 -0
  27. data/generated/google/apis/compute_beta/service.rb +3 -3
  28. data/generated/google/apis/compute_v1.rb +1 -1
  29. data/generated/google/apis/compute_v1/classes.rb +698 -21
  30. data/generated/google/apis/compute_v1/representations.rb +268 -0
  31. data/generated/google/apis/compute_v1/service.rb +778 -14
  32. data/generated/google/apis/content_v2.rb +1 -1
  33. data/generated/google/apis/content_v2/classes.rb +53 -1
  34. data/generated/google/apis/content_v2/representations.rb +18 -0
  35. data/generated/google/apis/content_v2/service.rb +62 -4
  36. data/generated/google/apis/dataproc_v1.rb +1 -1
  37. data/generated/google/apis/dataproc_v1/classes.rb +11 -7
  38. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  39. data/generated/google/apis/dataproc_v1beta2/classes.rb +9 -5
  40. data/generated/google/apis/dlp_v2.rb +1 -1
  41. data/generated/google/apis/dlp_v2/classes.rb +2 -1
  42. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  43. data/generated/google/apis/dlp_v2beta1/classes.rb +2 -1
  44. data/generated/google/apis/dlp_v2beta2.rb +1 -1
  45. data/generated/google/apis/dlp_v2beta2/classes.rb +2 -1
  46. data/generated/google/apis/drive_v2.rb +1 -1
  47. data/generated/google/apis/drive_v2/classes.rb +2 -1
  48. data/generated/google/apis/drive_v2/service.rb +6 -5
  49. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  50. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +141 -1
  51. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +56 -0
  52. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +40 -0
  53. data/generated/google/apis/genomics_v1.rb +1 -1
  54. data/generated/google/apis/genomics_v1/classes.rb +0 -16
  55. data/generated/google/apis/genomics_v1/service.rb +0 -120
  56. data/generated/google/apis/groupssettings_v1.rb +1 -1
  57. data/generated/google/apis/groupssettings_v1/classes.rb +4 -3
  58. data/generated/google/apis/iam_v1.rb +1 -1
  59. data/generated/google/apis/iam_v1/classes.rb +0 -1
  60. data/generated/google/apis/manufacturers_v1.rb +1 -1
  61. data/generated/google/apis/manufacturers_v1/classes.rb +70 -7
  62. data/generated/google/apis/manufacturers_v1/representations.rb +23 -0
  63. data/generated/google/apis/manufacturers_v1/service.rb +17 -3
  64. data/generated/google/apis/partners_v2.rb +1 -1
  65. data/generated/google/apis/partners_v2/classes.rb +10 -1
  66. data/generated/google/apis/partners_v2/representations.rb +1 -0
  67. data/generated/google/apis/people_v1.rb +1 -1
  68. data/generated/google/apis/people_v1/classes.rb +2 -1
  69. data/generated/google/apis/safebrowsing_v4.rb +2 -2
  70. data/generated/google/apis/safebrowsing_v4/service.rb +1 -1
  71. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  72. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -7
  73. data/generated/google/apis/serviceuser_v1.rb +1 -1
  74. data/generated/google/apis/serviceuser_v1/classes.rb +1 -6
  75. data/generated/google/apis/spanner_v1.rb +1 -1
  76. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  77. data/generated/google/apis/storagetransfer_v1/classes.rb +25 -27
  78. data/generated/google/apis/testing_v1.rb +2 -2
  79. data/generated/google/apis/testing_v1/classes.rb +2 -1
  80. data/generated/google/apis/testing_v1/service.rb +1 -1
  81. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  82. data/lib/google/apis/version.rb +1 -1
  83. metadata +2 -2
@@ -1342,6 +1342,42 @@ module Google
1342
1342
  include Google::Apis::Core::JsonObjectSupport
1343
1343
  end
1344
1344
 
1345
+ class LicenseCode
1346
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1347
+
1348
+ include Google::Apis::Core::JsonObjectSupport
1349
+ end
1350
+
1351
+ class LicenseCodeLicenseAlias
1352
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1353
+
1354
+ include Google::Apis::Core::JsonObjectSupport
1355
+ end
1356
+
1357
+ class LicenseResourceRequirements
1358
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1359
+
1360
+ include Google::Apis::Core::JsonObjectSupport
1361
+ end
1362
+
1363
+ class LicensesListResponse
1364
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1365
+
1366
+ class Warning
1367
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1368
+
1369
+ class Datum
1370
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1371
+
1372
+ include Google::Apis::Core::JsonObjectSupport
1373
+ end
1374
+
1375
+ include Google::Apis::Core::JsonObjectSupport
1376
+ end
1377
+
1378
+ include Google::Apis::Core::JsonObjectSupport
1379
+ end
1380
+
1345
1381
  class MachineType
1346
1382
  class Representation < Google::Apis::Core::JsonRepresentation; end
1347
1383
 
@@ -2014,6 +2050,54 @@ module Google
2014
2050
  include Google::Apis::Core::JsonObjectSupport
2015
2051
  end
2016
2052
 
2053
+ class SslPoliciesList
2054
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2055
+
2056
+ class Warning
2057
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2058
+
2059
+ class Datum
2060
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2061
+
2062
+ include Google::Apis::Core::JsonObjectSupport
2063
+ end
2064
+
2065
+ include Google::Apis::Core::JsonObjectSupport
2066
+ end
2067
+
2068
+ include Google::Apis::Core::JsonObjectSupport
2069
+ end
2070
+
2071
+ class SslPoliciesListAvailableFeaturesResponse
2072
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2073
+
2074
+ include Google::Apis::Core::JsonObjectSupport
2075
+ end
2076
+
2077
+ class SslPolicy
2078
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2079
+
2080
+ class Warning
2081
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2082
+
2083
+ class Datum
2084
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2085
+
2086
+ include Google::Apis::Core::JsonObjectSupport
2087
+ end
2088
+
2089
+ include Google::Apis::Core::JsonObjectSupport
2090
+ end
2091
+
2092
+ include Google::Apis::Core::JsonObjectSupport
2093
+ end
2094
+
2095
+ class SslPolicyReference
2096
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2097
+
2098
+ include Google::Apis::Core::JsonObjectSupport
2099
+ end
2100
+
2017
2101
  class Subnetwork
2018
2102
  class Representation < Google::Apis::Core::JsonRepresentation; end
2019
2103
 
@@ -2458,6 +2542,18 @@ module Google
2458
2542
  include Google::Apis::Core::JsonObjectSupport
2459
2543
  end
2460
2544
 
2545
+ class TestPermissionsRequest
2546
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2547
+
2548
+ include Google::Apis::Core::JsonObjectSupport
2549
+ end
2550
+
2551
+ class TestPermissionsResponse
2552
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2553
+
2554
+ include Google::Apis::Core::JsonObjectSupport
2555
+ end
2556
+
2461
2557
  class UrlMap
2462
2558
  class Representation < Google::Apis::Core::JsonRepresentation; end
2463
2559
 
@@ -3464,6 +3560,7 @@ module Google
3464
3560
  hash :labels, as: 'labels'
3465
3561
  property :last_attach_timestamp, as: 'lastAttachTimestamp'
3466
3562
  property :last_detach_timestamp, as: 'lastDetachTimestamp'
3563
+ collection :license_codes, as: 'licenseCodes'
3467
3564
  collection :licenses, as: 'licenses'
3468
3565
  property :name, as: 'name'
3469
3566
  property :options, as: 'options'
@@ -4128,6 +4225,7 @@ module Google
4128
4225
  property :kind, as: 'kind'
4129
4226
  property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
4130
4227
  hash :labels, as: 'labels'
4228
+ collection :license_codes, as: 'licenseCodes'
4131
4229
  collection :licenses, as: 'licenses'
4132
4230
  property :name, as: 'name'
4133
4231
  property :raw_disk, as: 'rawDisk', class: Google::Apis::ComputeV1::Image::RawDisk, decorator: Google::Apis::ComputeV1::Image::RawDisk::Representation
@@ -5114,9 +5212,79 @@ module Google
5114
5212
  # @private
5115
5213
  class Representation < Google::Apis::Core::JsonRepresentation
5116
5214
  property :charges_use_fee, as: 'chargesUseFee'
5215
+ property :creation_timestamp, as: 'creationTimestamp'
5216
+ property :description, as: 'description'
5217
+ property :id, :numeric_string => true, as: 'id'
5117
5218
  property :kind, as: 'kind'
5219
+ property :license_code, :numeric_string => true, as: 'licenseCode'
5118
5220
  property :name, as: 'name'
5221
+ property :resource_requirements, as: 'resourceRequirements', class: Google::Apis::ComputeV1::LicenseResourceRequirements, decorator: Google::Apis::ComputeV1::LicenseResourceRequirements::Representation
5222
+
5119
5223
  property :self_link, as: 'selfLink'
5224
+ property :transferable, as: 'transferable'
5225
+ end
5226
+ end
5227
+
5228
+ class LicenseCode
5229
+ # @private
5230
+ class Representation < Google::Apis::Core::JsonRepresentation
5231
+ property :creation_timestamp, as: 'creationTimestamp'
5232
+ property :description, as: 'description'
5233
+ property :id, :numeric_string => true, as: 'id'
5234
+ property :kind, as: 'kind'
5235
+ collection :license_alias, as: 'licenseAlias', class: Google::Apis::ComputeV1::LicenseCodeLicenseAlias, decorator: Google::Apis::ComputeV1::LicenseCodeLicenseAlias::Representation
5236
+
5237
+ property :name, as: 'name'
5238
+ property :self_link, as: 'selfLink'
5239
+ property :state, as: 'state'
5240
+ property :transferable, as: 'transferable'
5241
+ end
5242
+ end
5243
+
5244
+ class LicenseCodeLicenseAlias
5245
+ # @private
5246
+ class Representation < Google::Apis::Core::JsonRepresentation
5247
+ property :description, as: 'description'
5248
+ property :self_link, as: 'selfLink'
5249
+ end
5250
+ end
5251
+
5252
+ class LicenseResourceRequirements
5253
+ # @private
5254
+ class Representation < Google::Apis::Core::JsonRepresentation
5255
+ property :min_guest_cpu_count, as: 'minGuestCpuCount'
5256
+ property :min_memory_mb, as: 'minMemoryMb'
5257
+ end
5258
+ end
5259
+
5260
+ class LicensesListResponse
5261
+ # @private
5262
+ class Representation < Google::Apis::Core::JsonRepresentation
5263
+ property :id, as: 'id'
5264
+ collection :items, as: 'items', class: Google::Apis::ComputeV1::License, decorator: Google::Apis::ComputeV1::License::Representation
5265
+
5266
+ property :next_page_token, as: 'nextPageToken'
5267
+ property :self_link, as: 'selfLink'
5268
+ property :warning, as: 'warning', class: Google::Apis::ComputeV1::LicensesListResponse::Warning, decorator: Google::Apis::ComputeV1::LicensesListResponse::Warning::Representation
5269
+
5270
+ end
5271
+
5272
+ class Warning
5273
+ # @private
5274
+ class Representation < Google::Apis::Core::JsonRepresentation
5275
+ property :code, as: 'code'
5276
+ collection :data, as: 'data', class: Google::Apis::ComputeV1::LicensesListResponse::Warning::Datum, decorator: Google::Apis::ComputeV1::LicensesListResponse::Warning::Datum::Representation
5277
+
5278
+ property :message, as: 'message'
5279
+ end
5280
+
5281
+ class Datum
5282
+ # @private
5283
+ class Representation < Google::Apis::Core::JsonRepresentation
5284
+ property :key, as: 'key'
5285
+ property :value, as: 'value'
5286
+ end
5287
+ end
5120
5288
  end
5121
5289
  end
5122
5290
 
@@ -6238,6 +6406,7 @@ module Google
6238
6406
  property :kind, as: 'kind'
6239
6407
  property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
6240
6408
  hash :labels, as: 'labels'
6409
+ collection :license_codes, as: 'licenseCodes'
6241
6410
  collection :licenses, as: 'licenses'
6242
6411
  property :name, as: 'name'
6243
6412
  property :self_link, as: 'selfLink'
@@ -6331,6 +6500,89 @@ module Google
6331
6500
  end
6332
6501
  end
6333
6502
 
6503
+ class SslPoliciesList
6504
+ # @private
6505
+ class Representation < Google::Apis::Core::JsonRepresentation
6506
+ property :id, as: 'id'
6507
+ collection :items, as: 'items', class: Google::Apis::ComputeV1::SslPolicy, decorator: Google::Apis::ComputeV1::SslPolicy::Representation
6508
+
6509
+ property :kind, as: 'kind'
6510
+ property :next_page_token, as: 'nextPageToken'
6511
+ property :self_link, as: 'selfLink'
6512
+ property :warning, as: 'warning', class: Google::Apis::ComputeV1::SslPoliciesList::Warning, decorator: Google::Apis::ComputeV1::SslPoliciesList::Warning::Representation
6513
+
6514
+ end
6515
+
6516
+ class Warning
6517
+ # @private
6518
+ class Representation < Google::Apis::Core::JsonRepresentation
6519
+ property :code, as: 'code'
6520
+ collection :data, as: 'data', class: Google::Apis::ComputeV1::SslPoliciesList::Warning::Datum, decorator: Google::Apis::ComputeV1::SslPoliciesList::Warning::Datum::Representation
6521
+
6522
+ property :message, as: 'message'
6523
+ end
6524
+
6525
+ class Datum
6526
+ # @private
6527
+ class Representation < Google::Apis::Core::JsonRepresentation
6528
+ property :key, as: 'key'
6529
+ property :value, as: 'value'
6530
+ end
6531
+ end
6532
+ end
6533
+ end
6534
+
6535
+ class SslPoliciesListAvailableFeaturesResponse
6536
+ # @private
6537
+ class Representation < Google::Apis::Core::JsonRepresentation
6538
+ collection :features, as: 'features'
6539
+ end
6540
+ end
6541
+
6542
+ class SslPolicy
6543
+ # @private
6544
+ class Representation < Google::Apis::Core::JsonRepresentation
6545
+ property :creation_timestamp, as: 'creationTimestamp'
6546
+ collection :custom_features, as: 'customFeatures'
6547
+ property :description, as: 'description'
6548
+ collection :enabled_features, as: 'enabledFeatures'
6549
+ property :fingerprint, :base64 => true, as: 'fingerprint'
6550
+ property :id, :numeric_string => true, as: 'id'
6551
+ property :kind, as: 'kind'
6552
+ property :min_tls_version, as: 'minTlsVersion'
6553
+ property :name, as: 'name'
6554
+ property :profile, as: 'profile'
6555
+ property :self_link, as: 'selfLink'
6556
+ collection :warnings, as: 'warnings', class: Google::Apis::ComputeV1::SslPolicy::Warning, decorator: Google::Apis::ComputeV1::SslPolicy::Warning::Representation
6557
+
6558
+ end
6559
+
6560
+ class Warning
6561
+ # @private
6562
+ class Representation < Google::Apis::Core::JsonRepresentation
6563
+ property :code, as: 'code'
6564
+ collection :data, as: 'data', class: Google::Apis::ComputeV1::SslPolicy::Warning::Datum, decorator: Google::Apis::ComputeV1::SslPolicy::Warning::Datum::Representation
6565
+
6566
+ property :message, as: 'message'
6567
+ end
6568
+
6569
+ class Datum
6570
+ # @private
6571
+ class Representation < Google::Apis::Core::JsonRepresentation
6572
+ property :key, as: 'key'
6573
+ property :value, as: 'value'
6574
+ end
6575
+ end
6576
+ end
6577
+ end
6578
+
6579
+ class SslPolicyReference
6580
+ # @private
6581
+ class Representation < Google::Apis::Core::JsonRepresentation
6582
+ property :ssl_policy, as: 'sslPolicy'
6583
+ end
6584
+ end
6585
+
6334
6586
  class Subnetwork
6335
6587
  # @private
6336
6588
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6546,6 +6798,7 @@ module Google
6546
6798
  property :name, as: 'name'
6547
6799
  property :self_link, as: 'selfLink'
6548
6800
  collection :ssl_certificates, as: 'sslCertificates'
6801
+ property :ssl_policy, as: 'sslPolicy'
6549
6802
  property :url_map, as: 'urlMap'
6550
6803
  end
6551
6804
  end
@@ -6880,6 +7133,7 @@ module Google
6880
7133
  property :self_link, as: 'selfLink'
6881
7134
  property :service, as: 'service'
6882
7135
  collection :ssl_certificates, as: 'sslCertificates'
7136
+ property :ssl_policy, as: 'sslPolicy'
6883
7137
  end
6884
7138
  end
6885
7139
 
@@ -7094,6 +7348,20 @@ module Google
7094
7348
  end
7095
7349
  end
7096
7350
 
7351
+ class TestPermissionsRequest
7352
+ # @private
7353
+ class Representation < Google::Apis::Core::JsonRepresentation
7354
+ collection :permissions, as: 'permissions'
7355
+ end
7356
+ end
7357
+
7358
+ class TestPermissionsResponse
7359
+ # @private
7360
+ class Representation < Google::Apis::Core::JsonRepresentation
7361
+ collection :permissions, as: 'permissions'
7362
+ end
7363
+ end
7364
+
7097
7365
  class UrlMap
7098
7366
  # @private
7099
7367
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -7079,6 +7079,14 @@ module Google
7079
7079
  # accidentally creating duplicate commitments.
7080
7080
  # The request ID must be a valid UUID with the exception that zero UUID is not
7081
7081
  # supported (00000000-0000-0000-0000-000000000000).
7082
+ # @param [String] source_instance_template
7083
+ # Specifies instance template to create the instance.
7084
+ # This field is optional. It can be a full or partial URL. For example, the
7085
+ # following are all valid URLs to an instance template:
7086
+ # - https://www.googleapis.com/compute/v1/projects/project/global/global/
7087
+ # instanceTemplates/instanceTemplate
7088
+ # - projects/project/global/global/instanceTemplates/instanceTemplate
7089
+ # - global/instancesTemplates/instanceTemplate
7082
7090
  # @param [String] fields
7083
7091
  # Selector specifying which fields to include in a partial response.
7084
7092
  # @param [String] quota_user
@@ -7100,7 +7108,7 @@ module Google
7100
7108
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7101
7109
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7102
7110
  # @raise [Google::Apis::AuthorizationError] Authorization is required
7103
- def insert_instance(project, zone, instance_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7111
+ def insert_instance(project, zone, instance_object = nil, request_id: nil, source_instance_template: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7104
7112
  command = make_simple_command(:post, '{project}/zones/{zone}/instances', options)
7105
7113
  command.request_representation = Google::Apis::ComputeV1::Instance::Representation
7106
7114
  command.request_object = instance_object
@@ -7109,6 +7117,7 @@ module Google
7109
7117
  command.params['project'] = project unless project.nil?
7110
7118
  command.params['zone'] = zone unless zone.nil?
7111
7119
  command.query['requestId'] = request_id unless request_id.nil?
7120
+ command.query['sourceInstanceTemplate'] = source_instance_template unless source_instance_template.nil?
7112
7121
  command.query['fields'] = fields unless fields.nil?
7113
7122
  command.query['quotaUser'] = quota_user unless quota_user.nil?
7114
7123
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -8862,6 +8871,136 @@ module Google
8862
8871
  execute_or_queue_command(command, &block)
8863
8872
  end
8864
8873
 
8874
+ # Return a specified license code. License codes are mirrored across all
8875
+ # projects that have permissions to read the License Code.
8876
+ # @param [String] project
8877
+ # Project ID for this request.
8878
+ # @param [String] license_code
8879
+ # Number corresponding to the License code resource to return.
8880
+ # @param [String] fields
8881
+ # Selector specifying which fields to include in a partial response.
8882
+ # @param [String] quota_user
8883
+ # Available to use for quota purposes for server-side applications. Can be any
8884
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8885
+ # Overrides userIp if both are provided.
8886
+ # @param [String] user_ip
8887
+ # IP address of the site where the request originates. Use this if you want to
8888
+ # enforce per-user limits.
8889
+ # @param [Google::Apis::RequestOptions] options
8890
+ # Request-specific options
8891
+ #
8892
+ # @yield [result, err] Result & error if block supplied
8893
+ # @yieldparam result [Google::Apis::ComputeV1::LicenseCode] parsed result object
8894
+ # @yieldparam err [StandardError] error object if request failed
8895
+ #
8896
+ # @return [Google::Apis::ComputeV1::LicenseCode]
8897
+ #
8898
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8899
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8900
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8901
+ def get_license_code(project, license_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8902
+ command = make_simple_command(:get, '{project}/global/licenseCodes/{licenseCode}', options)
8903
+ command.response_representation = Google::Apis::ComputeV1::LicenseCode::Representation
8904
+ command.response_class = Google::Apis::ComputeV1::LicenseCode
8905
+ command.params['project'] = project unless project.nil?
8906
+ command.params['licenseCode'] = license_code unless license_code.nil?
8907
+ command.query['fields'] = fields unless fields.nil?
8908
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8909
+ command.query['userIp'] = user_ip unless user_ip.nil?
8910
+ execute_or_queue_command(command, &block)
8911
+ end
8912
+
8913
+ # Returns permissions that a caller has on the specified resource.
8914
+ # @param [String] project
8915
+ # Project ID for this request.
8916
+ # @param [String] resource
8917
+ # Name of the resource for this request.
8918
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
8919
+ # @param [String] fields
8920
+ # Selector specifying which fields to include in a partial response.
8921
+ # @param [String] quota_user
8922
+ # Available to use for quota purposes for server-side applications. Can be any
8923
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8924
+ # Overrides userIp if both are provided.
8925
+ # @param [String] user_ip
8926
+ # IP address of the site where the request originates. Use this if you want to
8927
+ # enforce per-user limits.
8928
+ # @param [Google::Apis::RequestOptions] options
8929
+ # Request-specific options
8930
+ #
8931
+ # @yield [result, err] Result & error if block supplied
8932
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
8933
+ # @yieldparam err [StandardError] error object if request failed
8934
+ #
8935
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
8936
+ #
8937
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8938
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8939
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8940
+ def test_license_code_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8941
+ command = make_simple_command(:post, '{project}/global/licenseCodes/{resource}/testIamPermissions', options)
8942
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
8943
+ command.request_object = test_permissions_request_object
8944
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
8945
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
8946
+ command.params['project'] = project unless project.nil?
8947
+ command.params['resource'] = resource unless resource.nil?
8948
+ command.query['fields'] = fields unless fields.nil?
8949
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8950
+ command.query['userIp'] = user_ip unless user_ip.nil?
8951
+ execute_or_queue_command(command, &block)
8952
+ end
8953
+
8954
+ # Deletes the specified license.
8955
+ # @param [String] project
8956
+ # Project ID for this request.
8957
+ # @param [String] license
8958
+ # Name of the license resource to delete.
8959
+ # @param [String] request_id
8960
+ # An optional request ID to identify requests. Specify a unique request ID so
8961
+ # that if you must retry your request, the server will know to ignore the
8962
+ # request if it has already been completed.
8963
+ # For example, consider a situation where you make an initial request and the
8964
+ # request times out. If you make the request again with the same request ID, the
8965
+ # server can check if original operation with the same request ID was received,
8966
+ # and if so, will ignore the second request. This prevents clients from
8967
+ # accidentally creating duplicate commitments.
8968
+ # The request ID must be a valid UUID with the exception that zero UUID is not
8969
+ # supported (00000000-0000-0000-0000-000000000000).
8970
+ # @param [String] fields
8971
+ # Selector specifying which fields to include in a partial response.
8972
+ # @param [String] quota_user
8973
+ # Available to use for quota purposes for server-side applications. Can be any
8974
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8975
+ # Overrides userIp if both are provided.
8976
+ # @param [String] user_ip
8977
+ # IP address of the site where the request originates. Use this if you want to
8978
+ # enforce per-user limits.
8979
+ # @param [Google::Apis::RequestOptions] options
8980
+ # Request-specific options
8981
+ #
8982
+ # @yield [result, err] Result & error if block supplied
8983
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
8984
+ # @yieldparam err [StandardError] error object if request failed
8985
+ #
8986
+ # @return [Google::Apis::ComputeV1::Operation]
8987
+ #
8988
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8989
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8990
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8991
+ def delete_license(project, license, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8992
+ command = make_simple_command(:delete, '{project}/global/licenses/{license}', options)
8993
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
8994
+ command.response_class = Google::Apis::ComputeV1::Operation
8995
+ command.params['project'] = project unless project.nil?
8996
+ command.params['license'] = license unless license.nil?
8997
+ command.query['requestId'] = request_id unless request_id.nil?
8998
+ command.query['fields'] = fields unless fields.nil?
8999
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9000
+ command.query['userIp'] = user_ip unless user_ip.nil?
9001
+ execute_or_queue_command(command, &block)
9002
+ end
9003
+
8865
9004
  # Returns the specified License resource.
8866
9005
  # @param [String] project
8867
9006
  # Project ID for this request.
@@ -8900,6 +9039,174 @@ module Google
8900
9039
  execute_or_queue_command(command, &block)
8901
9040
  end
8902
9041
 
9042
+ # Create a License resource in the specified project.
9043
+ # @param [String] project
9044
+ # Project ID for this request.
9045
+ # @param [Google::Apis::ComputeV1::License] license_object
9046
+ # @param [String] request_id
9047
+ # An optional request ID to identify requests. Specify a unique request ID so
9048
+ # that if you must retry your request, the server will know to ignore the
9049
+ # request if it has already been completed.
9050
+ # For example, consider a situation where you make an initial request and the
9051
+ # request times out. If you make the request again with the same request ID, the
9052
+ # server can check if original operation with the same request ID was received,
9053
+ # and if so, will ignore the second request. This prevents clients from
9054
+ # accidentally creating duplicate commitments.
9055
+ # The request ID must be a valid UUID with the exception that zero UUID is not
9056
+ # supported (00000000-0000-0000-0000-000000000000).
9057
+ # @param [String] fields
9058
+ # Selector specifying which fields to include in a partial response.
9059
+ # @param [String] quota_user
9060
+ # Available to use for quota purposes for server-side applications. Can be any
9061
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9062
+ # Overrides userIp if both are provided.
9063
+ # @param [String] user_ip
9064
+ # IP address of the site where the request originates. Use this if you want to
9065
+ # enforce per-user limits.
9066
+ # @param [Google::Apis::RequestOptions] options
9067
+ # Request-specific options
9068
+ #
9069
+ # @yield [result, err] Result & error if block supplied
9070
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
9071
+ # @yieldparam err [StandardError] error object if request failed
9072
+ #
9073
+ # @return [Google::Apis::ComputeV1::Operation]
9074
+ #
9075
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9076
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9077
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9078
+ def insert_license(project, license_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9079
+ command = make_simple_command(:post, '{project}/global/licenses', options)
9080
+ command.request_representation = Google::Apis::ComputeV1::License::Representation
9081
+ command.request_object = license_object
9082
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
9083
+ command.response_class = Google::Apis::ComputeV1::Operation
9084
+ command.params['project'] = project unless project.nil?
9085
+ command.query['requestId'] = request_id unless request_id.nil?
9086
+ command.query['fields'] = fields unless fields.nil?
9087
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9088
+ command.query['userIp'] = user_ip unless user_ip.nil?
9089
+ execute_or_queue_command(command, &block)
9090
+ end
9091
+
9092
+ # Retrieves the list of licenses available in the specified project. This method
9093
+ # does not get any licenses that belong to other projects, including licenses
9094
+ # attached to publicly-available images, like Debian 8. If you want to get a
9095
+ # list of publicly-available licenses, use this method to make a request to the
9096
+ # respective image project, such as debian-cloud or windows-cloud.
9097
+ # @param [String] project
9098
+ # Project ID for this request.
9099
+ # @param [String] filter
9100
+ # A filter expression that filters resources listed in the response. The
9101
+ # expression must specify the field name, a comparison operator, and the value
9102
+ # that you want to use for filtering. The value must be a string, a number, or a
9103
+ # boolean. The comparison operator must be either =, !=, >, or <.
9104
+ # For example, if you are filtering Compute Engine instances, you can exclude
9105
+ # instances named example-instance by specifying name != example-instance.
9106
+ # You can also filter nested fields. For example, you could specify scheduling.
9107
+ # automaticRestart = false to include instances only if they are not scheduled
9108
+ # for automatic restarts. You can use filtering on nested fields to filter based
9109
+ # on resource labels.
9110
+ # To filter on multiple expressions, provide each separate expression within
9111
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
9112
+ # Intel Skylake"). By default, each expression is an AND expression. However,
9113
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
9114
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
9115
+ # automaticRestart = true).
9116
+ # @param [Fixnum] max_results
9117
+ # The maximum number of results per page that should be returned. If the number
9118
+ # of available results is larger than maxResults, Compute Engine returns a
9119
+ # nextPageToken that can be used to get the next page of results in subsequent
9120
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
9121
+ # @param [String] order_by
9122
+ # Sorts list results by a certain order. By default, results are returned in
9123
+ # alphanumerical order based on the resource name.
9124
+ # You can also sort results in descending order based on the creation timestamp
9125
+ # using orderBy="creationTimestamp desc". This sorts results based on the
9126
+ # creationTimestamp field in reverse chronological order (newest result first).
9127
+ # Use this to sort resources like operations so that the newest operation is
9128
+ # returned first.
9129
+ # Currently, only sorting by name or creationTimestamp desc is supported.
9130
+ # @param [String] page_token
9131
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
9132
+ # a previous list request to get the next page of results.
9133
+ # @param [String] fields
9134
+ # Selector specifying which fields to include in a partial response.
9135
+ # @param [String] quota_user
9136
+ # Available to use for quota purposes for server-side applications. Can be any
9137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9138
+ # Overrides userIp if both are provided.
9139
+ # @param [String] user_ip
9140
+ # IP address of the site where the request originates. Use this if you want to
9141
+ # enforce per-user limits.
9142
+ # @param [Google::Apis::RequestOptions] options
9143
+ # Request-specific options
9144
+ #
9145
+ # @yield [result, err] Result & error if block supplied
9146
+ # @yieldparam result [Google::Apis::ComputeV1::LicensesListResponse] parsed result object
9147
+ # @yieldparam err [StandardError] error object if request failed
9148
+ #
9149
+ # @return [Google::Apis::ComputeV1::LicensesListResponse]
9150
+ #
9151
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9152
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9153
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9154
+ def list_licenses(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9155
+ command = make_simple_command(:get, '{project}/global/licenses', options)
9156
+ command.response_representation = Google::Apis::ComputeV1::LicensesListResponse::Representation
9157
+ command.response_class = Google::Apis::ComputeV1::LicensesListResponse
9158
+ command.params['project'] = project unless project.nil?
9159
+ command.query['filter'] = filter unless filter.nil?
9160
+ command.query['maxResults'] = max_results unless max_results.nil?
9161
+ command.query['orderBy'] = order_by unless order_by.nil?
9162
+ command.query['pageToken'] = page_token unless page_token.nil?
9163
+ command.query['fields'] = fields unless fields.nil?
9164
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9165
+ command.query['userIp'] = user_ip unless user_ip.nil?
9166
+ execute_or_queue_command(command, &block)
9167
+ end
9168
+
9169
+ # Returns permissions that a caller has on the specified resource.
9170
+ # @param [String] project
9171
+ # Project ID for this request.
9172
+ # @param [String] resource
9173
+ # Name of the resource for this request.
9174
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
9175
+ # @param [String] fields
9176
+ # Selector specifying which fields to include in a partial response.
9177
+ # @param [String] quota_user
9178
+ # Available to use for quota purposes for server-side applications. Can be any
9179
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9180
+ # Overrides userIp if both are provided.
9181
+ # @param [String] user_ip
9182
+ # IP address of the site where the request originates. Use this if you want to
9183
+ # enforce per-user limits.
9184
+ # @param [Google::Apis::RequestOptions] options
9185
+ # Request-specific options
9186
+ #
9187
+ # @yield [result, err] Result & error if block supplied
9188
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
9189
+ # @yieldparam err [StandardError] error object if request failed
9190
+ #
9191
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
9192
+ #
9193
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9194
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9195
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9196
+ def test_license_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9197
+ command = make_simple_command(:post, '{project}/global/licenses/{resource}/testIamPermissions', options)
9198
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
9199
+ command.request_object = test_permissions_request_object
9200
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
9201
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
9202
+ command.params['project'] = project unless project.nil?
9203
+ command.params['resource'] = resource unless resource.nil?
9204
+ command.query['fields'] = fields unless fields.nil?
9205
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9206
+ command.query['userIp'] = user_ip unless user_ip.nil?
9207
+ execute_or_queue_command(command, &block)
9208
+ end
9209
+
8903
9210
  # Retrieves an aggregated list of machine types.
8904
9211
  # @param [String] project
8905
9212
  # Project ID for this request.
@@ -13366,18 +13673,361 @@ module Google
13366
13673
  execute_or_queue_command(command, &block)
13367
13674
  end
13368
13675
 
13369
- # Retrieves an aggregated list of subnetworks.
13676
+ # Deletes the specified SSL policy. The SSL policy resource can be deleted only
13677
+ # if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
13370
13678
  # @param [String] project
13371
13679
  # Project ID for this request.
13372
- # @param [String] filter
13373
- # A filter expression that filters resources listed in the response. The
13374
- # expression must specify the field name, a comparison operator, and the value
13375
- # that you want to use for filtering. The value must be a string, a number, or a
13376
- # boolean. The comparison operator must be either =, !=, >, or <.
13377
- # For example, if you are filtering Compute Engine instances, you can exclude
13378
- # instances named example-instance by specifying name != example-instance.
13379
- # You can also filter nested fields. For example, you could specify scheduling.
13380
- # automaticRestart = false to include instances only if they are not scheduled
13680
+ # @param [String] ssl_policy
13681
+ # Name of the SSL policy to delete. The name must be 1-63 characters long, and
13682
+ # comply with RFC1035.
13683
+ # @param [String] request_id
13684
+ # An optional request ID to identify requests. Specify a unique request ID so
13685
+ # that if you must retry your request, the server will know to ignore the
13686
+ # request if it has already been completed.
13687
+ # For example, consider a situation where you make an initial request and the
13688
+ # request times out. If you make the request again with the same request ID, the
13689
+ # server can check if original operation with the same request ID was received,
13690
+ # and if so, will ignore the second request. This prevents clients from
13691
+ # accidentally creating duplicate commitments.
13692
+ # The request ID must be a valid UUID with the exception that zero UUID is not
13693
+ # supported (00000000-0000-0000-0000-000000000000).
13694
+ # @param [String] fields
13695
+ # Selector specifying which fields to include in a partial response.
13696
+ # @param [String] quota_user
13697
+ # Available to use for quota purposes for server-side applications. Can be any
13698
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13699
+ # Overrides userIp if both are provided.
13700
+ # @param [String] user_ip
13701
+ # IP address of the site where the request originates. Use this if you want to
13702
+ # enforce per-user limits.
13703
+ # @param [Google::Apis::RequestOptions] options
13704
+ # Request-specific options
13705
+ #
13706
+ # @yield [result, err] Result & error if block supplied
13707
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
13708
+ # @yieldparam err [StandardError] error object if request failed
13709
+ #
13710
+ # @return [Google::Apis::ComputeV1::Operation]
13711
+ #
13712
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13713
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13714
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13715
+ def delete_ssl_policy(project, ssl_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13716
+ command = make_simple_command(:delete, '{project}/global/sslPolicies/{sslPolicy}', options)
13717
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
13718
+ command.response_class = Google::Apis::ComputeV1::Operation
13719
+ command.params['project'] = project unless project.nil?
13720
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
13721
+ command.query['requestId'] = request_id unless request_id.nil?
13722
+ command.query['fields'] = fields unless fields.nil?
13723
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13724
+ command.query['userIp'] = user_ip unless user_ip.nil?
13725
+ execute_or_queue_command(command, &block)
13726
+ end
13727
+
13728
+ # List all of the ordered rules present in a single specified policy.
13729
+ # @param [String] project
13730
+ # Project ID for this request.
13731
+ # @param [String] ssl_policy
13732
+ # Name of the SSL policy to update. The name must be 1-63 characters long, and
13733
+ # comply with RFC1035.
13734
+ # @param [String] fields
13735
+ # Selector specifying which fields to include in a partial response.
13736
+ # @param [String] quota_user
13737
+ # Available to use for quota purposes for server-side applications. Can be any
13738
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13739
+ # Overrides userIp if both are provided.
13740
+ # @param [String] user_ip
13741
+ # IP address of the site where the request originates. Use this if you want to
13742
+ # enforce per-user limits.
13743
+ # @param [Google::Apis::RequestOptions] options
13744
+ # Request-specific options
13745
+ #
13746
+ # @yield [result, err] Result & error if block supplied
13747
+ # @yieldparam result [Google::Apis::ComputeV1::SslPolicy] parsed result object
13748
+ # @yieldparam err [StandardError] error object if request failed
13749
+ #
13750
+ # @return [Google::Apis::ComputeV1::SslPolicy]
13751
+ #
13752
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13753
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13754
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13755
+ def get_ssl_policy(project, ssl_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13756
+ command = make_simple_command(:get, '{project}/global/sslPolicies/{sslPolicy}', options)
13757
+ command.response_representation = Google::Apis::ComputeV1::SslPolicy::Representation
13758
+ command.response_class = Google::Apis::ComputeV1::SslPolicy
13759
+ command.params['project'] = project unless project.nil?
13760
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
13761
+ command.query['fields'] = fields unless fields.nil?
13762
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13763
+ command.query['userIp'] = user_ip unless user_ip.nil?
13764
+ execute_or_queue_command(command, &block)
13765
+ end
13766
+
13767
+ # Returns the specified SSL policy resource. Get a list of available SSL
13768
+ # policies by making a list() request.
13769
+ # @param [String] project
13770
+ # Project ID for this request.
13771
+ # @param [Google::Apis::ComputeV1::SslPolicy] ssl_policy_object
13772
+ # @param [String] request_id
13773
+ # An optional request ID to identify requests. Specify a unique request ID so
13774
+ # that if you must retry your request, the server will know to ignore the
13775
+ # request if it has already been completed.
13776
+ # For example, consider a situation where you make an initial request and the
13777
+ # request times out. If you make the request again with the same request ID, the
13778
+ # server can check if original operation with the same request ID was received,
13779
+ # and if so, will ignore the second request. This prevents clients from
13780
+ # accidentally creating duplicate commitments.
13781
+ # The request ID must be a valid UUID with the exception that zero UUID is not
13782
+ # supported (00000000-0000-0000-0000-000000000000).
13783
+ # @param [String] fields
13784
+ # Selector specifying which fields to include in a partial response.
13785
+ # @param [String] quota_user
13786
+ # Available to use for quota purposes for server-side applications. Can be any
13787
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13788
+ # Overrides userIp if both are provided.
13789
+ # @param [String] user_ip
13790
+ # IP address of the site where the request originates. Use this if you want to
13791
+ # enforce per-user limits.
13792
+ # @param [Google::Apis::RequestOptions] options
13793
+ # Request-specific options
13794
+ #
13795
+ # @yield [result, err] Result & error if block supplied
13796
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
13797
+ # @yieldparam err [StandardError] error object if request failed
13798
+ #
13799
+ # @return [Google::Apis::ComputeV1::Operation]
13800
+ #
13801
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13802
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13803
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13804
+ def insert_ssl_policy(project, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13805
+ command = make_simple_command(:post, '{project}/global/sslPolicies', options)
13806
+ command.request_representation = Google::Apis::ComputeV1::SslPolicy::Representation
13807
+ command.request_object = ssl_policy_object
13808
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
13809
+ command.response_class = Google::Apis::ComputeV1::Operation
13810
+ command.params['project'] = project unless project.nil?
13811
+ command.query['requestId'] = request_id unless request_id.nil?
13812
+ command.query['fields'] = fields unless fields.nil?
13813
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13814
+ command.query['userIp'] = user_ip unless user_ip.nil?
13815
+ execute_or_queue_command(command, &block)
13816
+ end
13817
+
13818
+ # List all the SSL policies that have been configured for the specified project.
13819
+ # @param [String] project
13820
+ # Project ID for this request.
13821
+ # @param [String] filter
13822
+ # A filter expression that filters resources listed in the response. The
13823
+ # expression must specify the field name, a comparison operator, and the value
13824
+ # that you want to use for filtering. The value must be a string, a number, or a
13825
+ # boolean. The comparison operator must be either =, !=, >, or <.
13826
+ # For example, if you are filtering Compute Engine instances, you can exclude
13827
+ # instances named example-instance by specifying name != example-instance.
13828
+ # You can also filter nested fields. For example, you could specify scheduling.
13829
+ # automaticRestart = false to include instances only if they are not scheduled
13830
+ # for automatic restarts. You can use filtering on nested fields to filter based
13831
+ # on resource labels.
13832
+ # To filter on multiple expressions, provide each separate expression within
13833
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
13834
+ # Intel Skylake"). By default, each expression is an AND expression. However,
13835
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
13836
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
13837
+ # automaticRestart = true).
13838
+ # @param [Fixnum] max_results
13839
+ # The maximum number of results per page that should be returned. If the number
13840
+ # of available results is larger than maxResults, Compute Engine returns a
13841
+ # nextPageToken that can be used to get the next page of results in subsequent
13842
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
13843
+ # @param [String] order_by
13844
+ # Sorts list results by a certain order. By default, results are returned in
13845
+ # alphanumerical order based on the resource name.
13846
+ # You can also sort results in descending order based on the creation timestamp
13847
+ # using orderBy="creationTimestamp desc". This sorts results based on the
13848
+ # creationTimestamp field in reverse chronological order (newest result first).
13849
+ # Use this to sort resources like operations so that the newest operation is
13850
+ # returned first.
13851
+ # Currently, only sorting by name or creationTimestamp desc is supported.
13852
+ # @param [String] page_token
13853
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
13854
+ # a previous list request to get the next page of results.
13855
+ # @param [String] fields
13856
+ # Selector specifying which fields to include in a partial response.
13857
+ # @param [String] quota_user
13858
+ # Available to use for quota purposes for server-side applications. Can be any
13859
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13860
+ # Overrides userIp if both are provided.
13861
+ # @param [String] user_ip
13862
+ # IP address of the site where the request originates. Use this if you want to
13863
+ # enforce per-user limits.
13864
+ # @param [Google::Apis::RequestOptions] options
13865
+ # Request-specific options
13866
+ #
13867
+ # @yield [result, err] Result & error if block supplied
13868
+ # @yieldparam result [Google::Apis::ComputeV1::SslPoliciesList] parsed result object
13869
+ # @yieldparam err [StandardError] error object if request failed
13870
+ #
13871
+ # @return [Google::Apis::ComputeV1::SslPoliciesList]
13872
+ #
13873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13876
+ def list_ssl_policies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13877
+ command = make_simple_command(:get, '{project}/global/sslPolicies', options)
13878
+ command.response_representation = Google::Apis::ComputeV1::SslPoliciesList::Representation
13879
+ command.response_class = Google::Apis::ComputeV1::SslPoliciesList
13880
+ command.params['project'] = project unless project.nil?
13881
+ command.query['filter'] = filter unless filter.nil?
13882
+ command.query['maxResults'] = max_results unless max_results.nil?
13883
+ command.query['orderBy'] = order_by unless order_by.nil?
13884
+ command.query['pageToken'] = page_token unless page_token.nil?
13885
+ command.query['fields'] = fields unless fields.nil?
13886
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13887
+ command.query['userIp'] = user_ip unless user_ip.nil?
13888
+ execute_or_queue_command(command, &block)
13889
+ end
13890
+
13891
+ # Lists all features that can be specified in the SSL policy when using custom
13892
+ # profile.
13893
+ # @param [String] project
13894
+ # Project ID for this request.
13895
+ # @param [String] filter
13896
+ # A filter expression that filters resources listed in the response. The
13897
+ # expression must specify the field name, a comparison operator, and the value
13898
+ # that you want to use for filtering. The value must be a string, a number, or a
13899
+ # boolean. The comparison operator must be either =, !=, >, or <.
13900
+ # For example, if you are filtering Compute Engine instances, you can exclude
13901
+ # instances named example-instance by specifying name != example-instance.
13902
+ # You can also filter nested fields. For example, you could specify scheduling.
13903
+ # automaticRestart = false to include instances only if they are not scheduled
13904
+ # for automatic restarts. You can use filtering on nested fields to filter based
13905
+ # on resource labels.
13906
+ # To filter on multiple expressions, provide each separate expression within
13907
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
13908
+ # Intel Skylake"). By default, each expression is an AND expression. However,
13909
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
13910
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
13911
+ # automaticRestart = true).
13912
+ # @param [Fixnum] max_results
13913
+ # The maximum number of results per page that should be returned. If the number
13914
+ # of available results is larger than maxResults, Compute Engine returns a
13915
+ # nextPageToken that can be used to get the next page of results in subsequent
13916
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
13917
+ # @param [String] order_by
13918
+ # Sorts list results by a certain order. By default, results are returned in
13919
+ # alphanumerical order based on the resource name.
13920
+ # You can also sort results in descending order based on the creation timestamp
13921
+ # using orderBy="creationTimestamp desc". This sorts results based on the
13922
+ # creationTimestamp field in reverse chronological order (newest result first).
13923
+ # Use this to sort resources like operations so that the newest operation is
13924
+ # returned first.
13925
+ # Currently, only sorting by name or creationTimestamp desc is supported.
13926
+ # @param [String] page_token
13927
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
13928
+ # a previous list request to get the next page of results.
13929
+ # @param [String] fields
13930
+ # Selector specifying which fields to include in a partial response.
13931
+ # @param [String] quota_user
13932
+ # Available to use for quota purposes for server-side applications. Can be any
13933
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13934
+ # Overrides userIp if both are provided.
13935
+ # @param [String] user_ip
13936
+ # IP address of the site where the request originates. Use this if you want to
13937
+ # enforce per-user limits.
13938
+ # @param [Google::Apis::RequestOptions] options
13939
+ # Request-specific options
13940
+ #
13941
+ # @yield [result, err] Result & error if block supplied
13942
+ # @yieldparam result [Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse] parsed result object
13943
+ # @yieldparam err [StandardError] error object if request failed
13944
+ #
13945
+ # @return [Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse]
13946
+ #
13947
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13948
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13949
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13950
+ def list_ssl_policy_available_features(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13951
+ command = make_simple_command(:get, '{project}/global/sslPolicies/listAvailableFeatures', options)
13952
+ command.response_representation = Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse::Representation
13953
+ command.response_class = Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse
13954
+ command.params['project'] = project unless project.nil?
13955
+ command.query['filter'] = filter unless filter.nil?
13956
+ command.query['maxResults'] = max_results unless max_results.nil?
13957
+ command.query['orderBy'] = order_by unless order_by.nil?
13958
+ command.query['pageToken'] = page_token unless page_token.nil?
13959
+ command.query['fields'] = fields unless fields.nil?
13960
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13961
+ command.query['userIp'] = user_ip unless user_ip.nil?
13962
+ execute_or_queue_command(command, &block)
13963
+ end
13964
+
13965
+ # Patches the specified SSL policy with the data included in the request.
13966
+ # @param [String] project
13967
+ # Project ID for this request.
13968
+ # @param [String] ssl_policy
13969
+ # Name of the SSL policy to update. The name must be 1-63 characters long, and
13970
+ # comply with RFC1035.
13971
+ # @param [Google::Apis::ComputeV1::SslPolicy] ssl_policy_object
13972
+ # @param [String] request_id
13973
+ # An optional request ID to identify requests. Specify a unique request ID so
13974
+ # that if you must retry your request, the server will know to ignore the
13975
+ # request if it has already been completed.
13976
+ # For example, consider a situation where you make an initial request and the
13977
+ # request times out. If you make the request again with the same request ID, the
13978
+ # server can check if original operation with the same request ID was received,
13979
+ # and if so, will ignore the second request. This prevents clients from
13980
+ # accidentally creating duplicate commitments.
13981
+ # The request ID must be a valid UUID with the exception that zero UUID is not
13982
+ # supported (00000000-0000-0000-0000-000000000000).
13983
+ # @param [String] fields
13984
+ # Selector specifying which fields to include in a partial response.
13985
+ # @param [String] quota_user
13986
+ # Available to use for quota purposes for server-side applications. Can be any
13987
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13988
+ # Overrides userIp if both are provided.
13989
+ # @param [String] user_ip
13990
+ # IP address of the site where the request originates. Use this if you want to
13991
+ # enforce per-user limits.
13992
+ # @param [Google::Apis::RequestOptions] options
13993
+ # Request-specific options
13994
+ #
13995
+ # @yield [result, err] Result & error if block supplied
13996
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
13997
+ # @yieldparam err [StandardError] error object if request failed
13998
+ #
13999
+ # @return [Google::Apis::ComputeV1::Operation]
14000
+ #
14001
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14002
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14003
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14004
+ def patch_ssl_policy(project, ssl_policy, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14005
+ command = make_simple_command(:patch, '{project}/global/sslPolicies/{sslPolicy}', options)
14006
+ command.request_representation = Google::Apis::ComputeV1::SslPolicy::Representation
14007
+ command.request_object = ssl_policy_object
14008
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
14009
+ command.response_class = Google::Apis::ComputeV1::Operation
14010
+ command.params['project'] = project unless project.nil?
14011
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
14012
+ command.query['requestId'] = request_id unless request_id.nil?
14013
+ command.query['fields'] = fields unless fields.nil?
14014
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14015
+ command.query['userIp'] = user_ip unless user_ip.nil?
14016
+ execute_or_queue_command(command, &block)
14017
+ end
14018
+
14019
+ # Retrieves an aggregated list of subnetworks.
14020
+ # @param [String] project
14021
+ # Project ID for this request.
14022
+ # @param [String] filter
14023
+ # A filter expression that filters resources listed in the response. The
14024
+ # expression must specify the field name, a comparison operator, and the value
14025
+ # that you want to use for filtering. The value must be a string, a number, or a
14026
+ # boolean. The comparison operator must be either =, !=, >, or <.
14027
+ # For example, if you are filtering Compute Engine instances, you can exclude
14028
+ # instances named example-instance by specifying name != example-instance.
14029
+ # You can also filter nested fields. For example, you could specify scheduling.
14030
+ # automaticRestart = false to include instances only if they are not scheduled
13381
14031
  # for automatic restarts. You can use filtering on nested fields to filter based
13382
14032
  # on resource labels.
13383
14033
  # To filter on multiple expressions, provide each separate expression within
@@ -13722,9 +14372,9 @@ module Google
13722
14372
 
13723
14373
  # Patches the specified subnetwork with the data included in the request. Only
13724
14374
  # the following fields within the subnetwork resource can be specified in the
13725
- # request: secondary_ip_range and allow_subnet_cidr_routes_overlap. It is also
13726
- # mandatory to specify the current fingeprint of the subnetwork resource being
13727
- # patched.
14375
+ # request: secondary_ip_range, allow_subnet_cidr_routes_overlap and role. It is
14376
+ # also mandatory to specify the current fingeprint of the subnetwork resource
14377
+ # being patched.
13728
14378
  # @param [String] project
13729
14379
  # Project ID for this request.
13730
14380
  # @param [String] region
@@ -14371,6 +15021,63 @@ module Google
14371
15021
  execute_or_queue_command(command, &block)
14372
15022
  end
14373
15023
 
15024
+ # Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-
15025
+ # side support for SSL features. This affects connections between clients and
15026
+ # the HTTPS proxy load balancer. They do not affect the connection between the
15027
+ # load balancer and the backends.
15028
+ # @param [String] project
15029
+ # Project ID for this request.
15030
+ # @param [String] target_https_proxy
15031
+ # Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name
15032
+ # must be 1-63 characters long, and comply with RFC1035.
15033
+ # @param [Google::Apis::ComputeV1::SslPolicyReference] ssl_policy_reference_object
15034
+ # @param [String] request_id
15035
+ # An optional request ID to identify requests. Specify a unique request ID so
15036
+ # that if you must retry your request, the server will know to ignore the
15037
+ # request if it has already been completed.
15038
+ # For example, consider a situation where you make an initial request and the
15039
+ # request times out. If you make the request again with the same request ID, the
15040
+ # server can check if original operation with the same request ID was received,
15041
+ # and if so, will ignore the second request. This prevents clients from
15042
+ # accidentally creating duplicate commitments.
15043
+ # The request ID must be a valid UUID with the exception that zero UUID is not
15044
+ # supported (00000000-0000-0000-0000-000000000000).
15045
+ # @param [String] fields
15046
+ # Selector specifying which fields to include in a partial response.
15047
+ # @param [String] quota_user
15048
+ # Available to use for quota purposes for server-side applications. Can be any
15049
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
15050
+ # Overrides userIp if both are provided.
15051
+ # @param [String] user_ip
15052
+ # IP address of the site where the request originates. Use this if you want to
15053
+ # enforce per-user limits.
15054
+ # @param [Google::Apis::RequestOptions] options
15055
+ # Request-specific options
15056
+ #
15057
+ # @yield [result, err] Result & error if block supplied
15058
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
15059
+ # @yieldparam err [StandardError] error object if request failed
15060
+ #
15061
+ # @return [Google::Apis::ComputeV1::Operation]
15062
+ #
15063
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15064
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15065
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15066
+ def set_target_https_proxy_ssl_policy(project, target_https_proxy, ssl_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15067
+ command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy', options)
15068
+ command.request_representation = Google::Apis::ComputeV1::SslPolicyReference::Representation
15069
+ command.request_object = ssl_policy_reference_object
15070
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
15071
+ command.response_class = Google::Apis::ComputeV1::Operation
15072
+ command.params['project'] = project unless project.nil?
15073
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
15074
+ command.query['requestId'] = request_id unless request_id.nil?
15075
+ command.query['fields'] = fields unless fields.nil?
15076
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15077
+ command.query['userIp'] = user_ip unless user_ip.nil?
15078
+ execute_or_queue_command(command, &block)
15079
+ end
15080
+
14374
15081
  # Changes the URL map for TargetHttpsProxy.
14375
15082
  # @param [String] project
14376
15083
  # Project ID for this request.
@@ -15722,6 +16429,63 @@ module Google
15722
16429
  execute_or_queue_command(command, &block)
15723
16430
  end
15724
16431
 
16432
+ # Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-
16433
+ # side support for SSL features. This affects connections between clients and
16434
+ # the SSL proxy load balancer. They do not affect the connection between the
16435
+ # load balancer and the backends.
16436
+ # @param [String] project
16437
+ # Project ID for this request.
16438
+ # @param [String] target_ssl_proxy
16439
+ # Name of the TargetSslProxy resource whose SSL policy is to be set. The name
16440
+ # must be 1-63 characters long, and comply with RFC1035.
16441
+ # @param [Google::Apis::ComputeV1::SslPolicyReference] ssl_policy_reference_object
16442
+ # @param [String] request_id
16443
+ # An optional request ID to identify requests. Specify a unique request ID so
16444
+ # that if you must retry your request, the server will know to ignore the
16445
+ # request if it has already been completed.
16446
+ # For example, consider a situation where you make an initial request and the
16447
+ # request times out. If you make the request again with the same request ID, the
16448
+ # server can check if original operation with the same request ID was received,
16449
+ # and if so, will ignore the second request. This prevents clients from
16450
+ # accidentally creating duplicate commitments.
16451
+ # The request ID must be a valid UUID with the exception that zero UUID is not
16452
+ # supported (00000000-0000-0000-0000-000000000000).
16453
+ # @param [String] fields
16454
+ # Selector specifying which fields to include in a partial response.
16455
+ # @param [String] quota_user
16456
+ # Available to use for quota purposes for server-side applications. Can be any
16457
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16458
+ # Overrides userIp if both are provided.
16459
+ # @param [String] user_ip
16460
+ # IP address of the site where the request originates. Use this if you want to
16461
+ # enforce per-user limits.
16462
+ # @param [Google::Apis::RequestOptions] options
16463
+ # Request-specific options
16464
+ #
16465
+ # @yield [result, err] Result & error if block supplied
16466
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
16467
+ # @yieldparam err [StandardError] error object if request failed
16468
+ #
16469
+ # @return [Google::Apis::ComputeV1::Operation]
16470
+ #
16471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16474
+ def set_target_ssl_proxy_ssl_policy(project, target_ssl_proxy, ssl_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16475
+ command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy', options)
16476
+ command.request_representation = Google::Apis::ComputeV1::SslPolicyReference::Representation
16477
+ command.request_object = ssl_policy_reference_object
16478
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
16479
+ command.response_class = Google::Apis::ComputeV1::Operation
16480
+ command.params['project'] = project unless project.nil?
16481
+ command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
16482
+ command.query['requestId'] = request_id unless request_id.nil?
16483
+ command.query['fields'] = fields unless fields.nil?
16484
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16485
+ command.query['userIp'] = user_ip unless user_ip.nil?
16486
+ execute_or_queue_command(command, &block)
16487
+ end
16488
+
15725
16489
  # Deletes the specified TargetTcpProxy resource.
15726
16490
  # @param [String] project
15727
16491
  # Project ID for this request.