Commit 63be5ecb authored by Ryo Yamashita's avatar Ryo Yamashita Committed by Yas Naoi
Browse files

Issue #3304212 by Ryo Yamashita, yas, baldwinlouie: Fix URLs in endpoints to create entity

parent d849a7fa
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -894,10 +894,11 @@ entity.aws_cloud_entity.refresh:
    perm: 'edit any {entity_type_id}+edit own {entity_type_id}+list {entity_type_id}'

entity.aws_cloud_image.create:
  path: '/cloud_dashboard/aws_cloud/{cloud_context}/aws_cloud_image/{entity_id}/create'
  path: '/cloud_dashboard/aws_cloud/{cloud_context}/aws_cloud_image/create'
  defaults:
    _controller: '\Drupal\aws_cloud\Controller\Ec2\ApiController::operateEntity'
    entity_type_id: aws_cloud_image
    entity_id: ''
    command: create
  methods: [POST]
  requirements:
@@ -1116,10 +1117,11 @@ entity.aws_cloud_key_pair.import:
      perm: 'add aws cloud key pair'

entity.aws_cloud_security_group.create:
  path: '/cloud_dashboard/aws_cloud/{cloud_context}/aws_cloud_security_group/{entity_id}/create'
  path: '/cloud_dashboard/aws_cloud/{cloud_context}/aws_cloud_security_group/create'
  defaults:
    _controller: '\Drupal\aws_cloud\Controller\Ec2\ApiController::operateEntity'
    entity_type_id: aws_cloud_security_group
    entity_id: ''
    command: create
  methods: [POST]
  requirements:
@@ -1136,10 +1138,11 @@ entity.aws_cloud_security_group.revoke:
    _permission: 'delete any aws cloud security group'

entity.aws_cloud_key_pair.create:
  path: '/cloud_dashboard/aws_cloud/{cloud_context}/aws_cloud_key_pair/{entity_id}/create'
  path: '/cloud_dashboard/aws_cloud/{cloud_context}/aws_cloud_key_pair/create'
  defaults:
    _controller: '\Drupal\aws_cloud\Controller\Ec2\ApiController::operateEntity'
    entity_type_id: aws_cloud_key_pair
    entity_id: ''
    command: create
  methods: [POST]
  requirements:
+5 −0
Original line number Diff line number Diff line
@@ -167,6 +167,11 @@ interface VolumeInterface extends ContentEntityInterface, EntityOwnerInterface,
   */
  public function setRefreshed($time): VolumeInterface;

  /**
   * {@inheritdoc}
   */
  public function setAttachmentInformation($attachment_information): VolumeInterface;

  /**
   * {@inheritdoc}
   */
+5 −0
Original line number Diff line number Diff line
@@ -13,6 +13,11 @@ use Drupal\user\EntityOwnerInterface;
 */
interface CarrierGatewayInterface extends ContentEntityInterface, EntityOwnerInterface, AwsCloudEntityInterface {

  /**
   * {@inheritdoc}
   */
  public function getCloudContext(): ?string;

  /**
   * {@inheritdoc}
   */
+10 −0
Original line number Diff line number Diff line
@@ -13,6 +13,16 @@ use Drupal\user\EntityOwnerInterface;
 */
interface InternetGatewayInterface extends ContentEntityInterface, EntityOwnerInterface, AwsCloudEntityInterface {

  /**
   * {@inheritdoc}
   */
  public function setName($name);

  /**
   * {@inheritdoc}
   */
  public function getCloudContext(): ?string;

  /**
   * {@inheritdoc}
   */
+10 −0
Original line number Diff line number Diff line
@@ -13,6 +13,16 @@ use Drupal\user\EntityOwnerInterface;
 */
interface TransitGatewayInterface extends ContentEntityInterface, EntityOwnerInterface, AwsCloudEntityInterface {

  /**
   * {@inheritdoc}
   */
  public function setName($name);

  /**
   * {@inheritdoc}
   */
  public function getCloudContext(): ?string;

  /**
   * {@inheritdoc}
   */
Loading